fix: Check for _WIN32 instead of _MSC_VER
This commit is contained in:
parent
01d3c27d41
commit
88d6fbffb7
@ -12,7 +12,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _WIN32
|
||||||
typedef unsigned int mode_t;
|
typedef unsigned int mode_t;
|
||||||
typedef unsigned int gid_t;
|
typedef unsigned int gid_t;
|
||||||
typedef unsigned int uid_t;
|
typedef unsigned int uid_t;
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#define noreturn _Noreturn
|
#define noreturn _Noreturn
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) && !defined(__TINYC__)
|
#if !defined(_WIN32) && !defined(__TINYC__)
|
||||||
#define WEAK __attribute__((weak))
|
#define WEAK __attribute__((weak))
|
||||||
#else
|
#else
|
||||||
#define WEAK
|
#define WEAK
|
||||||
|
Loading…
Reference in New Issue
Block a user