summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-05-28 14:30:45 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-05-28 14:30:45 +0000
commit0b52018df2a64a159f697756fbda47bcd1de3ef4 (patch)
treee6aee451a65ebec6005509fe274002bc0397efbf
parente8e93e9cc641e31c9c0e6a2bb1ac3e44d0bdec5a (diff)
added MESA_VERSION() macro, etc (Holger Waechtler)
-rw-r--r--src/mesa/main/version.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/main/version.h b/src/mesa/main/version.h
index 92c71b3bf4..4205c5c664 100644
--- a/src/mesa/main/version.h
+++ b/src/mesa/main/version.h
@@ -33,10 +33,19 @@
#define MESA_PATCH 0
#define MESA_VERSION_STRING "5.1"
+/* To make version comparison easy */
+#define MESA_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
+#define MESA_VERSION_CODE MESA_VERSION(MESA_MAJOR, MESA_MINOR, MESA_PATCH)
+
+
/* OpenGL API version */
#define OPENGL_MAJOR 1
#define OPENGL_MINOR 4
#define OPENGL_VERSION_STRING "1.4"
+/* To make version comparison easy */
+#define OPENGL_VERSION(a,b) (((a) << 16) + ((b) << 8) + (c))
+#define OPENGL_VERSION_CODE OPENGL_VERSION(OPENGL_MAJOR, OPENGL_MINOR)
+
#endif /* VERSION_H */