Include Problem with Objective-C++ and OpenGL
- by Stephen Furlani
Hello,
I feel silly asking this but I've searched for 'include problems' and have only come up with basic stuff.
I'm working with an API that includes/imports in their header files (ARGH! HATE ANGER DESTRUCTION). One of these Obj-C files #import "OpenGL/CGLMacros.h" which #define's things like glMatrixMode(...);
In my code I need the glMatrixMode(...); from #include "OpenGL/gl.h" but it won't access it!
I can't edit the headers from the (poorly) coded API to put the includes in their definition files.
What can I do?
If the CGLMacros.h file starts out like
/*
Copyright: (c) 1999 by Apple Computer, Inc., all rights reserved.
*/
#ifndef _CGLMACRO_H
#define _CGLMACRO_H
Can I put a
#define _CGLMACRO_H
before I include the offending API header file?
-Stephen