Jump to content

OPENGL preprocessor macro - renaming possible?


Rastar
 Share

Recommended Posts

I'm playing around with a third-party library which defines an enum for various renderers, among them "OPENGL". That seems to clash with the OPENGL preprocessor macro in the standard project template. Is there a way to solve this? Can I rename the macro? And do a search&replace in the Leadwerks header file?

 

It would probably be safer to call the LE macros, __OPENGL__, __OPENGLES__ etc.

Link to comment
Share on other sites

The only two places I could find where those macros are used was in Leadwerks.h I've renamed the macro to __OPENGL__ in the header and build definition files and now things seem to be working. I really think those macros should be renamed in the standard files, name clashes are too likely.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...