Browse Source

Updated Remotery.

Branimir Karadžić 10 năm trước cách đây
mục cha
commit
906c8cb255
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      3rdparty/remotery/lib/Remotery.c

+ 4 - 0
3rdparty/remotery/lib/Remotery.c

@@ -5389,7 +5389,11 @@ GLAPI GLenum GLAPIENTRY glGetError(void) { return 0; }
 #elif defined(__native_client__)
 #  define rmtGetProcAddress(name) NULL /* TODO */
 #else /* __linux */
+#  ifdef __cplusplus
 extern "C" void* glXGetProcAddressARB(const GLubyte*);
+#  else
+extern void* glXGetProcAddressARB(const GLubyte*);
+#  endif // __cplusplus
 #  define rmtGetProcAddress(name) (*glXGetProcAddressARB)(name)
 #endif