diff --git a/code/qcommon/q_shared.h b/code/qcommon/q_shared.h index b817da05..f70571df 100644 --- a/code/qcommon/q_shared.h +++ b/code/qcommon/q_shared.h @@ -58,8 +58,10 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA //Ignore __attribute__ on non-gcc platforms #ifndef __GNUC__ +#ifndef __attribute__ #define __attribute__(x) #endif +#endif /********************************************************************** VM Considerations diff --git a/code/qcommon/qcommon.h b/code/qcommon/qcommon.h index 2530940f..1d438535 100644 --- a/code/qcommon/qcommon.h +++ b/code/qcommon/qcommon.h @@ -25,6 +25,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include "../qcommon/cm_public.h" +//Ignore __attribute__ on non-gcc platforms +#ifndef __GNUC__ +#ifndef __attribute__ +#define __attribute__(x) +#endif +#endif + //#define PRE_RELEASE_DEMO //============================================================================ diff --git a/code/qcommon/qfiles.h b/code/qcommon/qfiles.h index 1aab668f..bf7ccfdb 100644 --- a/code/qcommon/qfiles.h +++ b/code/qcommon/qfiles.h @@ -27,6 +27,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // 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)