-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missing defines used by
libhat.h
- Loading branch information
Showing
4 changed files
with
35 additions
and
27 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#pragma once | ||
|
||
// Detect CPU Architecture | ||
#if defined(_M_X64) || defined(__amd64__) | ||
#define LIBHAT_X86_64 | ||
#elif defined(_M_IX86) || defined(__i386__) | ||
#define LIBHAT_X86 | ||
#elif defined(_M_ARM64) || defined(__aarch64__) | ||
#define LIBHAT_AARCH64 | ||
#elif defined(_M_ARM) || defined(__arm__) | ||
#define LIBHAT_ARM | ||
#else | ||
#error Unsupported Architecture | ||
#endif | ||
|
||
// Detect Operating System | ||
#if defined(_WIN32) | ||
#define LIBHAT_WINDOWS | ||
#elif defined(linux) || defined(__linux__) || defined(__linux) | ||
#define LIBHAT_UNIX | ||
#define LIBHAT_LINUX | ||
#elif defined(__APPLE__) && defined(__MACH__) | ||
#define LIBHAT_UNIX | ||
#define LIBHAT_MAC | ||
#else | ||
#error Unsupported Operating System | ||
#endif |
This file contains 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