Explorar o código

Disable 'MSVC deprecated POSIX' warning

bel %!s(int64=10) %!d(string=hai) anos
pai
achega
15dea85752
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      src/main.c

+ 5 - 0
src/main.c

@@ -65,6 +65,11 @@ extern char *_getcwd(char *buf, size_t size);
 #endif
 static int guard = 0;                   /* test if any dialog is already open */
 
+#if defined (_MSC_VER)
+#define strdup _strdup
+/* or #pragma warning (disable : 4996 ) */
+#endif
+
 #ifndef PATH_MAX
 #define PATH_MAX MAX_PATH
 #endif