Skip to content

Instantly share code, notes, and snippets.

@mlabbe
Created April 3, 2016 18:06
Show Gist options
  • Select an option

  • Save mlabbe/9d4c017f8be9e4193f804b20f25ba3aa to your computer and use it in GitHub Desktop.

Select an option

Save mlabbe/9d4c017f8be9e4193f804b20f25ba3aa to your computer and use it in GitHub Desktop.
detect bits
/* 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