Explorar o código

Fix mingw compiler error

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

+ 2 - 0
src/civetweb.c

@@ -159,7 +159,9 @@ typedef long off_t;
 #define INT64_FMT  "I64d"
 
 #define WINCDECL __cdecl
+#define SHUT_RD 0
 #define SHUT_WR 1
+#define SHUT_BOTH 2
 #define snprintf _snprintf
 #define vsnprintf _vsnprintf
 #define access _access

+ 2 - 0
src/main.c

@@ -50,7 +50,9 @@
 #include <shlobj.h>
 
 #define getcwd(a,b) _getcwd(a,b)
+#if !defined(__MINGW32__)
 extern char *_getcwd(char *buf, size_t size);
+#endif
 static int guard = 0;                   /* test if any dialog is already open */
 
 #ifndef PATH_MAX