Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add platform and compiler defines #36

Open
billyquith opened this issue Aug 30, 2016 · 1 comment
Open

Add platform and compiler defines #36

billyquith opened this issue Aug 30, 2016 · 1 comment

Comments

@billyquith
Copy link
Owner

Current Gwork uses the default OS and compiler defines, e.g. _WIN32 etc. This can be problematic where you get setups that are a mix of these, e.g. MinG Win.

Add, in a platform header, OS, and compiler detection and defines and replace the current macros used.

@billyquith
Copy link
Owner Author

billyquith commented Aug 30, 2016

Work:

  • Create a header file (or put in Config.h) in the platform layer and then replace the various current defines.
  • Prefix all the macros with GWK_, maybe, GWK_OS_*, GWK_PLATFORM_*, GWK_COMPILER_*. Platforms can be cross-platform, so Allegro might have different OS but be same platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant