include guards causing my code to break? |
include guards causing my code to break? |
Eirik Byrkjeflot Anonsen
Guest
|
Owen Alanzo Hogarth writes:
Maybe it would work better if you use "#if defined __MACOSX__" instead of "#if __MACOSX__" (etc.)? Chances are those defines are defined to empty values, and empty values do not evaluate to true for #if. eirik _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||
|
include guards causing my code to break? |
Driedfruit
Guest
|
Just my 2 cents, ans slightly off-topic, but...
I think it might be a good idea not to use #ifdef's for include paths at all, and offset that to compiler flags (or appropriate settings for you IDE/whatever). I.e #include <SDL.h> gcc -I/usr/local/include/SDL2 On Sat, 14 Nov 2015 15:05:19 +0800 Owen Alanzo Hogarth wrote:
-- driedfruit _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||
|
include guards causing my code to break? |
M. Gerhardy
Guest
|
Also it looks looks you are mixing gles with gl - and if you are using any fixed function pipeline stuff that is no longer available in gles... this won't work, too.
I suppose you get those implicit decl errors on android? On Sat, Nov 14, 2015 at 7:00 PM, Driedfruit wrote:
-- http://www.caveproductions.org |
|||||||||||||||
|
include guards causing my code to break? |
Owen Alanzo Hogarth
Guest
|
Driedfruit that's actually a pretty good idea, I didn't think about that. I'll try that since I am using CMAKE.
M. Gerhardy I am only using opengles 2.0 and opengl 330 core that's the base line for this project. I don't do any fix function OpenGL. On Sun, Nov 15, 2015 at 5:00 AM, M. Gerhardy wrote:
|
|||||||||||||||||
|