浏览代码

dlopennot: ngage's g++ compiler does not support variadic macros

Anonymous Maarten 2 周之前
父节点
当前提交
c50e4b22ab
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      src/dynapi/SDL_dynapi_dlopennote.h

+ 8 - 0
src/dynapi/SDL_dynapi_dlopennote.h

@@ -91,8 +91,16 @@
 
 #else
 
+#if defined (__GNUC__) && __GNUC__ < 3
+
+#define SDL_ELF_NOTE_DLOPEN
+
+#else
+
 #define SDL_ELF_NOTE_DLOPEN(...)
 
 #endif
 
 #endif
+
+#endif