diff options
Diffstat (limited to 'src/main/c/common/commonbase.h')
-rw-r--r-- | src/main/c/common/commonbase.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main/c/common/commonbase.h b/src/main/c/common/commonbase.h new file mode 100644 index 0000000..e0f0cba --- /dev/null +++ b/src/main/c/common/commonbase.h @@ -0,0 +1,16 @@ + +typedef unsigned char uchar; + +#define STRQUOT_ASDFASDF(s) #s +#define STRQUOT(s) STRQUOT_ASDFASDF(s) +#ifndef PROJECT_VERSION +# define PROJECT_VERSION 0.0.0-SNAPSHOT +#endif + +#if __WIN32 + int _setmode(int,int); +# define FUCK_BROKEN_SYSTEMS() do{char a=0;for(;!(a&10);){_setmode(a++,32768);}}while(0) +#else +# define FUCK_BROKEN_SYSTEMS() +#endif + |