diff options
| author | Wiimm <wiimm@wiimm.de> | 2020-11-30 16:16:56 +0100 |
|---|---|---|
| committer | Wiimm <wiimm@wiimm.de> | 2020-11-30 16:16:56 +0100 |
| commit | 9c0078c6b9c1309b48f9ece8b5cad1b9be9a75c5 (patch) | |
| tree | 0abd3b6a244076650e40a07e42adae9c2a6b2d8c /project/dclib/dclib-system.h | |
| parent | a0815499b2d9014695e6e261c909476729445360 (diff) | |
SZS v2.21a
Diffstat (limited to '')
| -rw-r--r-- | project/dclib/dclib-system.h | 49 |
1 files changed, 31 insertions, 18 deletions
diff --git a/project/dclib/dclib-system.h b/project/dclib/dclib-system.h index e5a7380..e1f8264 100644 --- a/project/dclib/dclib-system.h +++ b/project/dclib/dclib-system.h @@ -44,10 +44,11 @@ typedef enum enumSystemID SYSID_UNKNOWN = 0x00000000, SYSID_I386 = 0x01000000, SYSID_X86_64 = 0x02000000, - SYSID_CYGWIN = 0x03000000, - SYSID_APPLE = 0x04000000, - SYSID_LINUX = 0x05000000, - SYSID_UNIX = 0x06000000, + SYSID_CYGWIN32 = 0x03000000, + SYSID_CYGWIN64 = 0x04000000, + SYSID_APPLE = 0x05000000, + SYSID_LINUX = 0x06000000, + SYSID_UNIX = 0x07000000, } enumSystemID; @@ -56,29 +57,39 @@ typedef enum enumSystemID #undef SYSTEM_LINUX #ifdef __CYGWIN__ - #define SYSTEM "cygwin" - #define SYSTEMID SYSID_CYGWIN + #define SYSTEM "cygwin" + #ifdef __x86_64 + #define SYSTEM2 "cygwin64" + #define SYSTEMID SYSID_CYGWIN64 + #else + #define SYSTEM2 "cygwin32" + #define SYSTEMID SYSID_CYGWIN32 + #endif #elif __APPLE__ - #define SYSTEM "mac" - #define SYSTEMID SYSID_APPLE + #define SYSTEM "mac" + #define SYSTEMID SYSID_APPLE #elif __linux__ #define SYSTEM_LINUX 1 #ifdef __i386__ - #define SYSTEM "i386" - #define SYSTEMID SYSID_I386 + #define SYSTEM "i386" + #define SYSTEMID SYSID_I386 #elif __x86_64__ - #define SYSTEM "x86_64" - #define SYSTEMID SYSID_X86_64 + #define SYSTEM "x86_64" + #define SYSTEMID SYSID_X86_64 #else - #define SYSTEM "linux" - #define SYSTEMID SYSID_LINUX + #define SYSTEM "linux" + #define SYSTEMID SYSID_LINUX #endif #elif __unix__ - #define SYSTEM "unix" - #define SYSTEMID SYSID_UNIX + #define SYSTEM "unix" + #define SYSTEMID SYSID_UNIX #else - #define SYSTEM "unknown" - #define SYSTEMID SYSID_UNKNOWN + #define SYSTEM "unknown" + #define SYSTEMID SYSID_UNKNOWN +#endif + +#ifndef SYSTEM2 + #define SYSTEM2 SYSTEM #endif /////////////////////////////////////////////////////////////////////////////// @@ -87,11 +98,13 @@ static inline void dclibPrintSystem ( FILE * f ) { fprintf(f, "SYSTEM\t\t:= %s\n" + "SYSTEM2\t\t:= %s\n" "SYSTEMID\t:= 0x%x\n" #ifdef SYSTEM_LINUX "SYSTEM_LINUX\t:= 1\n" #endif ,SYSTEM + ,SYSTEM2 ,SYSTEMID ); } |
