/* Common.h -- common definitions used throughout the code */ #ifndef __scineplex__common_h__ #define __scineplex__common_h__ #ifdef WIN32 #define WCONST const #define MAINTYPE void #define MAINRET exit(0) #else #define WCONST #define MAINTYPE int #define MAINRET return 0 #endif /* Linux and Solaris C libs have strcasecmp, Windows has stricmp. */ #ifndef WIN32 #define stricmp strcasecmp #endif typedef bool (* print_callback_fn_t)(const char *str, void *data); #endif // __scineplex__common_h__