diff --git a/defs.h b/defs.h index 327db86d2..01586fe0b 100644 --- a/defs.h +++ b/defs.h @@ -159,5 +159,9 @@ typedef void (*_PVFV)(void); #pragma data_seg(SEGMENT_C_INIT) #pragma data_seg() // Switch back to the default segment // Call function pointer arrays and place them in the segments created above -// #define SEG_ALLOCATE(SEGMENT) __declspec(allocate(SEGMENT)) +#ifdef _MSC_VER +#define SEG_ALLOCATE(SEGMENT) __declspec(allocate(SEGMENT)) +#else #define SEG_ALLOCATE(SEGMENT) +#endif +