Sfoglia il codice sorgente

Disable 'MSVC deprecated POSIX' warning

bel 10 anni fa
parent
commit
15dea85752
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  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