Created
April 3, 2016 18:06
-
-
Save mlabbe/9d4c017f8be9e4193f804b20f25ba3aa to your computer and use it in GitHub Desktop.
detect bits
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* detect target enviroment bits */ | |
| #if _WIN64 | |
| # define FTG_BITS 64 | |
| #elif _WIN32 | |
| # define FTG_BITS 32 | |
| #endif | |
| #if __GNUC__ | |
| # if __x86_64__ || __ppc64__ | |
| # define FTG_BITS 64 | |
| # else | |
| # define FTG_BITS 32 | |
| # endif | |
| #endif | |
| #ifndef FTG_BITS | |
| # error "ftg_core.h could not determine 32-bit or 64-bit" | |
| #endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment