SDL Forum Index
SDL
Simple DirectMedia Layer Forums
Reply to topic
warning: 'GLAPI' macro redefined
bram


Joined: 07 Feb 2017
Posts: 2
Reply with quote
If I include SDL_Opengl.h after including GL/glcorearb.h I get this compiler warning:

Code:
/home/bram/sdl205/include/SDL2/SDL_opengl.h:101:11: warning: 'GLAPI' macro redefined [-Wmacro-redefined]
#  define GLAPI __attribute__((visibility("default")))
          ^
/usr/include/GL/glcorearb.h:53:9: note: previous definition is here
#define GLAPI extern


This is with SDL 2.05 on Ubuntu 16.04.1, clang 3.8.0

Maybe the SDL_opengl.h header requires a #ifndef GLAPI guard?

Bram
View user's profileSend private message
warning: 'GLAPI' macro redefined
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic