r190 - trunk/code/qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Oct 27 18:05:38 EDT 2005


Author: tma
Date: 2005-10-27 18:05:38 -0400 (Thu, 27 Oct 2005)
New Revision: 190

Modified:
   trunk/code/qcommon/q_shared.h
   trunk/code/qcommon/qcommon.h
   trunk/code/qcommon/qfiles.h
Log:
* ...and the other common headers


Modified: trunk/code/qcommon/q_shared.h
===================================================================
--- trunk/code/qcommon/q_shared.h	2005-10-27 21:49:36 UTC (rev 189)
+++ trunk/code/qcommon/q_shared.h	2005-10-27 22:05:38 UTC (rev 190)
@@ -58,8 +58,10 @@
 
 //Ignore __attribute__ on non-gcc platforms
 #ifndef __GNUC__
+#ifndef __attribute__
 #define __attribute__(x)
 #endif
+#endif
 
 /**********************************************************************
   VM Considerations

Modified: trunk/code/qcommon/qcommon.h
===================================================================
--- trunk/code/qcommon/qcommon.h	2005-10-27 21:49:36 UTC (rev 189)
+++ trunk/code/qcommon/qcommon.h	2005-10-27 22:05:38 UTC (rev 190)
@@ -25,6 +25,13 @@
 
 #include "../qcommon/cm_public.h"
 
+//Ignore __attribute__ on non-gcc platforms
+#ifndef __GNUC__
+#ifndef __attribute__
+#define __attribute__(x)
+#endif
+#endif
+
 //#define	PRE_RELEASE_DEMO
 
 //============================================================================

Modified: trunk/code/qcommon/qfiles.h
===================================================================
--- trunk/code/qcommon/qfiles.h	2005-10-27 21:49:36 UTC (rev 189)
+++ trunk/code/qcommon/qfiles.h	2005-10-27 22:05:38 UTC (rev 190)
@@ -27,6 +27,13 @@
 // This file must be identical in the quake and utils directories
 //
 
+//Ignore __attribute__ on non-gcc platforms
+#ifndef __GNUC__
+#ifndef __attribute__
+#define __attribute__(x)
+#endif
+#endif
+
 // surface geometry should not exceed these limits
 #define	SHADER_MAX_VERTEXES	1000
 #define	SHADER_MAX_INDEXES	(6*SHADER_MAX_VERTEXES)




More information about the quake3-commits mailing list