]> Shamusworld >> Repos - rmac/blobdiff - rmac.h
Fixed compilation on MinGW.
[rmac] / rmac.h
diff --git a/rmac.h b/rmac.h
index 62fb5427e0fc80b48dc1909352273369366e2931..a3132b25c10149c3b6e6d2f12b3d86ecfc31a8fd 100644 (file)
--- a/rmac.h
+++ b/rmac.h
        // usage:
        // WARNING(FIXME: Code removed because...)
 
+       #else
+       //If we're not compiling for Visual Studio let's assume that we're using
+       //some flavour of gcc instead. So let's use the gcc compliant macro instead.
+       //If some weirdo uses something else (I dunno, Intel compiler or something?)
+       //this is probably going to explode spectacularly. Let's wait for the fireworks!
+       #define DO_PRAGMA(x) _Pragma (#x)
+       #define WARNING(desc) DO_PRAGMA(message (#desc))
+
        #endif
        #include <io.h>
        #include <fcntl.h>