commit 3b6d45328d84f91bd315aff9914693f460858e96
parent 82411e09915bc3697b627111aedc9d4d9c671a50
Author: 5hif7y <[email protected]>
Date: Tue, 22 Apr 2025 18:18:07 -0300
fix a typo and ignore 4996 '_fdopen' warning
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/wincompat.h b/wincompat.h
@@ -5,6 +5,7 @@
#define WINCOMPAT_H
#ifdef _WIN32
+#pragma warning(disable:4996) /* TODO: reimplement '_fdopen' for MSVC */
//#define _CRT_SECURE_NO_WARNINGS /* TODO: use secure implementation 'strcpy' to 'strcpy_s' */
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@@ -43,7 +44,7 @@ typedef int mode_t;
if (copy) { memcpy(copy, s, len); }
return copy;
}
- #define strcup custom_strdup
+ #define strdup custom_strdup
#endif /* _MSC_VER xor CUSTOM_STRDUP */
/* --------- posix functions reimplementations --------- */