fix: Check for _WIN32 instead of _MSC_VER

This commit is contained in:
apio 2023-02-06 23:17:28 +01:00
parent 01d3c27d41
commit 88d6fbffb7
Signed by: apio
GPG Key ID: B8A7D06E42258954
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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