From: Christopher W. <cr...@ms...> - 2004-10-01 21:09:29
|
Due to the way Apple has OpenGL organized, all of the GL header files are in different locations than on other platforms (GL/ -> OpenGL/ and GLUT/) Up until now, I've been using symbolic links to point the compiler to the right gl header files, but I'm trying to get around that. As of right now, my best thought is to go through and encase all of the includes with something like this: #ifdef DARWIN #include <OpenGL/gl.h> #include <GLUT/glut.h> #else #include <GL/gl.h> #include <GL/glut.h> #endif What would be the best (portable) method of doing this without having to add these to every single file that needs it? (cr/progs/ especially) I'm thinking a configure script would help for this, as well as other things, but I haven't seen any mention of one for chromium.. -Chris |