open-license-manager
2014-08-04 7b5931685caf55b7b974cb759e5018dbcf1a75c9
src/library/base/base.h
@@ -7,16 +7,30 @@
#endif
#ifdef __unix__
#include <limits.h>
#define DllExport
#define MAX_PATH PATH_MAX
#else
#ifndef MAX_PATH
   #define MAX_PATH PATH_MAX
#endif
#else //windows
#include <windows.h>
#define DllExport  __declspec( dllexport )
#endif
#define _DEBUG
/* #define _DEBUG */
/*
#define cmax(a,b) \
   ({ __typeof__ (a) _a = (a); \
       __typeof__ (b) _b = (b); \
     _a > _b ? _a : _b; })
#define cmin(a,b) \
   ({ __typeof__ (a) _a = (a); \
       __typeof__ (b) _b = (b); \
     _a < _b ? _a : _b; })
*/
typedef enum  {
   OK, NOOK, ERROR, BUFFER_TOO_SMALL
} FUNCTION_RETURN;