Fix missing define checks

This commit is contained in:
Michał Janiszewski committed 2016-07-09 10:24:26 +02:00
1 parent f82b4b4425
commit f2eb63847f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -78,7 +78,7 @@
#ifndef FASTCALL
#ifdef __GNUC__
#define FASTCALL __attribute__((fastcall))
#elif _MSC_VER
#elif defined(_MSC_VER)
#define FASTCALL __fastcall
#else
#pragma message "Not using fastcall calling convention, please check your compiler support"
+1 -1
View File
@@ -131,7 +131,7 @@ typedef uint8 colour_t;
#endif // defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
#if !(_POSIX_C_SOURCE >= 200809L || _XOPEN_SOURCE >= 700)
#if !((defined (_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200809L) || (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 700))
char *strndup(const char *src, size_t size);
#endif // !(POSIX_C_SOURCE >= 200809L || _XOPEN_SOURCE >= 700)