X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=rmac.h;h=62fb5427e0fc80b48dc1909352273369366e2931;hp=faa176ca8a69dfa967d856f1c5f17422d4211f4a;hb=850b5921f82266f0a416dc24ab44731f9692d4d9;hpb=d0c28c349ddfb8393568037f68bddbe8979ce0df diff --git a/rmac.h b/rmac.h index faa176c..62fb542 100644 --- a/rmac.h +++ b/rmac.h @@ -12,7 +12,7 @@ // // TARGET SPECIFIC BUILD SETTINGS // -#ifdef WIN32 +#if defined(WIN32) || defined (WIN64) // Release platform - windows #define PLATFORM "Win32" #define _OPEN_FLAGS _O_TRUNC|_O_CREAT|_O_BINARY|_O_RDWR @@ -22,6 +22,15 @@ #if _MSC_VER > 1000 #pragma warning(disable:4996) #endif + + // Makes warnings double clickable on visual studio (ggn) + #define STRINGIZE_HELPER(x) #x + #define STRINGIZE(x) STRINGIZE_HELPER(x) + #define WARNING(desc) __pragma(message(__FILE__ "(" STRINGIZE(__LINE__) ") : Warning: " #desc)) + + // usage: + // WARNING(FIXME: Code removed because...) + #endif #include #include @@ -31,6 +40,7 @@ #include #include #include + #else #ifdef __GCCUNIX__ // Release platform - mac OS-X or linux @@ -38,6 +48,9 @@ #define _OPEN_FLAGS O_TRUNC|O_CREAT|O_RDWR #define _OPEN_INC O_RDONLY #define _PERM_MODE S_IREAD|S_IWRITE + // WARNING WARNING WARNING + #define DO_PRAGMA(x) _Pragma (#x) + #define WARNING(desc) DO_PRAGMA(message (#desc)) #include #include #include @@ -52,6 +65,9 @@ #define _OPEN_FLAGS O_TRUNC|O_CREAT|O_RDWR #define _OPEN_INC O_RDONLY #define _PERM_MODE S_IREAD|S_IWRITE + // Defined here, even though the platfrom may not support it... + #define DO_PRAGMA(x) _Pragma (#x) + #define WARNING(desc) DO_PRAGMA(message (#desc)) #include #include #include