Rev 11 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 11 | Rev 12 | ||
|---|---|---|---|
| Line 19... | Line 19... | ||
| 19 | #include <stdbool.h> |
19 | #include <stdbool.h> |
| 20 | #include <string.h> |
20 | #include <string.h> |
| 21 | #include <fcntl.h> |
21 | #include <fcntl.h> |
| 22 | #ifndef _WIN32 |
22 | #ifndef _WIN32 |
| 23 | #include <unistd.h> |
23 | #include <unistd.h> |
| - | 24 | #define EXECUTABLE_SUFFIX |
|
| 24 | #else // _WIN32 |
25 | #else // _WIN32 |
| 25 | #include <process.h> |
26 | #include <process.h> |
| 26 | #include <io.h> |
27 | #include <io.h> |
| 27 | #define strdup(s) _strdup ((s)) |
28 | #define strdup(s) _strdup ((s)) |
| 28 | #define strcasecmp(a,b) _stricmp ((a), (b)) |
29 | #define strcasecmp(a,b) _stricmp ((a), (b)) |
| Line 39... | Line 40... | ||
| 39 | va_copy (ap, va_args); retval = vsnprintf (*out_string, (size_t) retval + 1, fmt, va_args); va_end (ap); |
40 | va_copy (ap, va_args); retval = vsnprintf (*out_string, (size_t) retval + 1, fmt, va_args); va_end (ap); |
| 40 | } |
41 | } |
| 41 | return (retval); |
42 | return (retval); |
| 42 | } |
43 | } |
| 43 | int asprintf (char **out_string, const char *fmt, ...) { int retval; va_list ap; va_start (ap, fmt); retval = vasprintf (out_string, fmt, ap); va_end (ap); return (retval); } // asprintf() implementation |
44 | int asprintf (char **out_string, const char *fmt, ...) { int retval; va_list ap; va_start (ap, fmt); retval = vasprintf (out_string, fmt, ap); va_end (ap); return (retval); } // asprintf() implementation |
| - | 45 | #define EXECUTABLE_SUFFIX ".exe" |
|
| 44 | #endif // !_WIN32 |
46 | #endif // !_WIN32 |
| 45 | 47 | ||
| 46 | 48 | ||
| 47 | #define BASEVER "12.2.0" |
49 | #define BASEVER "12.2.0" |
| 48 | #if (defined(__x86_64__) || defined(_WIN64)) |
50 | #if (defined(__x86_64__) || defined(_WIN64)) |
| Line 52... | Line 54... | ||
| 52 | #define IS_TARGET_INTEL 0 |
54 | #define IS_TARGET_INTEL 0 |
| 53 | #define TARGET_TRIPLE "aarch64-unknown-nto-qnx8.0.0" |
55 | #define TARGET_TRIPLE "aarch64-unknown-nto-qnx8.0.0" |
| 54 | #else |
56 | #else |
| 55 | #error unsupported platform (not x86_64, not aarch64le). Please implement! |
57 | #error unsupported platform (not x86_64, not aarch64le). Please implement! |
| 56 | #endif |
58 | #endif |
| 57 | #define COMPILER "clang" |
59 | #define COMPILER "clang" EXECUTABLE_SUFFIX |
| 58 | #define LINKER TARGET_TRIPLE "-ld" |
60 | #define LINKER TARGET_TRIPLE "-ld" |
| 59 | //#define LINKER "ld.lld" |
61 | //#define LINKER "ld.lld" |
| 60 | 62 | ||
| 61 | 63 | ||
| 62 | #define ARGMODE_SINGLE 0 |
64 | #define ARGMODE_SINGLE 0 |