Skip to content

Commit

Permalink
Merge pull request #1389 from TheCycoONE/simpler_64_check
Browse files Browse the repository at this point in the history
Simpler 64-bit test
  • Loading branch information
Alberth289346 committed Apr 16, 2018
2 parents 2ac56de + fcc4a2f commit b1cd0c6
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions CorsixTH/Src/config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,6 @@ SOFTWARE.
// Chinese are desired.
#cmakedefine CORSIX_TH_USE_FREETYPE2

/** Environment detection **/
#if defined(__amd64__) || defined(__IA64__) || defined(__x86_64__) || \
defined(__x86_64) || defined(_M_IA64) || defined(_IA64) || \
defined(_M_X64) || defined(_WIN64) || defined(__ia64__) || \
defined(__amd64) || defined (_LP64) || defined(__ia64)
#define CORSIX_TH_64BIT
#endif

#ifdef _MSC_VER
#define CORSIX_TH_USE_PACK_PRAGMAS 1
#define CORSIX_TH_PACKED_FLAGS
Expand All @@ -76,6 +68,11 @@ SOFTWARE.
#include <cstddef>
#include <cstdint>

/** Environment detection **/
#if UINTPTR_MAX == UINT64_MAX
#define CORSIX_TH_64BIT
#endif

// We bring in the most common stddef and stdint types to avoid typing
using std::size_t;
using std::uint8_t;
Expand Down

0 comments on commit b1cd0c6

Please sign in to comment.