]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - qtypes.h
move RESTRICT keyword define to qtypes.h and add it to all the
[xonotic/darkplaces.git] / qtypes.h
index 3a481cae5269fc53f8e8d863c35a5a7c8583da7d..250beaee080cdba1a12751aa639cf6be03f00cfc 100644 (file)
--- a/qtypes.h
+++ b/qtypes.h
@@ -29,4 +29,10 @@ typedef bool qboolean;
 // fall over
 #define        ROLL    2
 
+#if defined(__GNUC__) || (defined(_MSC_VER) && _MSC_VER >= 1400)
+#define RESTRICT __restrict
+#else
+#define RESTRICT
+#endif
+
 #endif