physfs_internal.h
changeset 936 3b4b6c107a59
parent 933 02f861d084a8
child 938 ecbae90ae88d
--- a/physfs_internal.h	Wed Mar 12 20:44:01 2008 +0000
+++ b/physfs_internal.h	Wed Mar 12 21:22:22 2008 +0000
@@ -33,6 +33,13 @@
 extern "C" {
 #endif
 
+#ifdef __GNUC__
+#define PHYSFS_MINIMUM_GCC_VER(major, minor) \
+    ( ((__GNUC__ << 16) + __GNUC_MINOR__) >= (((major) << 16) + (minor)) )
+#else
+#define PHYSFS_MINIMUM_GCC_VER(major, minor) (0)
+#endif
+
 /*
  * Interface for small allocations. If you need a little scratch space for
  *  a throwaway buffer or string, use this. It will make small allocations
@@ -1020,6 +1027,7 @@
 #define __PHYSFS_UI64(x) x
 #endif
 
+
 /*
  * Check if a ui64 will fit in the platform's address space.
  *  The initial sizeof check will optimize this macro out entirely on
@@ -1032,6 +1040,7 @@
     ((s) > (__PHYSFS_UI64(0xFFFFFFFFFFFFFFFF) >> (64-(sizeof(size_t)*8)))) \
 )
 
+
 /*
  * This is a strcasecmp() or stricmp() replacement that expects both strings
  *  to be in UTF-8 encoding. It will do "case folding" to decide if the