Skip to content

Instantly share code, notes, and snippets.

@Polda18
Created February 7, 2018 06:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Polda18/c21554b8964e8e657ffb5f3d61c06312 to your computer and use it in GitHub Desktop.
Save Polda18/c21554b8964e8e657ffb5f3d61c06312 to your computer and use it in GitHub Desktop.
OS environment definitions
/***********************************************
* Architecture environment branching of OS
* Basic structure
***********************************************/
#ifndef __ARCHITECTURES_H__
#define __ARCHITECTURES_H__
#if defined(i386) || defined(__i386) || defined(__i386__) || defined(_M_IX86) || defined(_X86_)
#define ENV32
#elif defined(__x86_64) || defined(__x86_64__) || defined(__amd64) || defined(__amd64__) || defined(_M_AMD64) || defined(_M_X64)
#define ENV64
#else
// Write code for other archutectures here
#endif
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment