]> de.git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - gmqcc.h
Not defining GMQCC_VERSION_ in gmqcc.h but checking if they're defiend and #error...
[xonotic/gmqcc.git] / gmqcc.h
diff --git a/gmqcc.h b/gmqcc.h
index 9a07d7aabe662ce90ba42c8116842a8d4116e305..86d0584a4321b027cd8136f3774d2e32e5bc4ea1 100644 (file)
--- a/gmqcc.h
+++ b/gmqcc.h
 #      pragma warning(disable : 4700 ) /* uninitialized local variable used                       */
 #endif
 
-#define GMQCC_VERSION_MAJOR 0
-#define GMQCC_VERSION_MINOR 2
-#define GMQCC_VERSION_PATCH 0
+#if !defined(GMQCC_VERSION_MAJOR) \
+ || !defined(GMQCC_VERSION_MINOR) \
+ || !defined(GMQCC_VERSION_PATCH)
+#   error GMQCC_VERSION_ macros missing
+#endif
+
 #define GMQCC_VERSION_BUILD(J,N,P) (((J)<<16)|((N)<<8)|(P))
 #define GMQCC_VERSION \
     GMQCC_VERSION_BUILD(GMQCC_VERSION_MAJOR, GMQCC_VERSION_MINOR, GMQCC_VERSION_PATCH)