diff --git a/code/game/bg_lib.h b/code/game/bg_lib.h index 493afa26..9d2b6232 100644 --- a/code/game/bg_lib.h +++ b/code/game/bg_lib.h @@ -26,6 +26,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #ifndef BG_LIB_H #define BG_LIB_H +//Ignore __attribute__ on non-gcc platforms +#ifndef __GNUC__ +#ifndef __attribute__ +#define __attribute__(x) +#endif +#endif + #ifndef NULL #define NULL ((void *)0) #endif