]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - include/misc_def.h
fix warning: format not a string literal and no format arguments
[xonotic/netradiant.git] / include / misc_def.h
index c6ab2ebbbc47dfcef0b2ea5668d7b35e68353c2a..90576add389eacc34f88a63571180ec734a3ba87 100644 (file)
@@ -1,27 +1,29 @@
 #ifndef _WIN32
 
 #define WINAPI
-#define APIENTRY
+#ifndef APIENTRY
+       #define APIENTRY
+#endif
 
 typedef void* HMODULE;
 typedef void* LPVOID;
 typedef char* LPCSTR;
 typedef char* LPSTR;
 
-#define IsEqualGUID(a,b) (memcmp(&a,&b,sizeof(a)) == 0)
+#define IsEqualGUID( a,b ) ( memcmp( &a,&b,sizeof( a ) ) == 0 )
 
 #ifndef GUID_DEFINED
 #define GUID_DEFINED
 typedef struct _GUID
 {
-  unsigned long  Data1;
-  unsigned short Data2;
-  unsigned short Data3;
-  unsigned char  Data4[8];
+       unsigned long Data1;
+       unsigned short Data2;
+       unsigned short Data3;
+       unsigned char Data4[8];
 } GUID;
 #endif
-#if defined(__cplusplus)
+
+#if defined( __cplusplus )
 #ifndef _REFGUID_DEFINED
 #define _REFGUID_DEFINED
 #define REFGUID const GUID &
@@ -59,6 +61,6 @@ typedef struct _GUID
 #define IDRETRY             4
 #define IDIGNORE            5
 #define IDYES               6
-#define IDNO                7 
+#define IDNO                7
 
 #endif