X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=common.h;h=28d9ea0cdc105c36c61551729619f2155ffe66df;hp=069f67754eac4c2ab9e98fff23e6bc0f0fc3b137;hb=0224eb908d4084f52a22c8d64404a0efb4acfa35;hpb=1aa8a0df26ef582dee4ffe3aa2f17f1f1a42b3c9 diff --git a/common.h b/common.h index 069f677..28d9ea0 100644 --- a/common.h +++ b/common.h @@ -1,17 +1,10 @@ #ifndef VOR_COMMON_H #define VOR_COMMON_H -#ifndef NULL -#define NULL 0 -#endif - -#ifndef true -#define true 1 -#endif +#include +#include -#ifndef false -#define false 0 -#endif +#define NONE (~0) #ifndef max #define max(a, b) ((a) > (b) ? (a) : (b)) @@ -28,4 +21,8 @@ #define CONDERROR(a) if((a)) {initerror = strdup(SDL_GetError());return 1;} #define NULLERROR(a) CONDERROR((a) == NULL) +#ifdef WIN32 +# include +#endif + #endif // VOR_COMMON_H