]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - win/inspircd_win32wrapper.h
Windows fix
[user/henk/code/inspircd.git] / win / inspircd_win32wrapper.h
index 943e50cb8017bc8e2c34739e47603f969296129f..7fef5ff1dd2972729c66a40114c5cdb2dbcb3430 100644 (file)
@@ -86,6 +86,7 @@
 
 /* this standard function is nonstarard. go figure. */
 #define popen _popen
+#define pclose _pclose
 
 /* Error macros need to be redirected to winsock error codes */
 #define ETIMEDOUT WSAETIMEDOUT
@@ -103,6 +104,9 @@ CoreExport const char * inet_ntop(int af, const void * src, char * dst, socklen_
 #define snprintf _snprintf
 #define vsnprintf _vsnprintf
 
+/* Since when does the ISO C++ standard *remove* C functions?! */
+#define mkdir(file,mode) _mkdir(file)
+
 /* Recursive token function doesn't exist in VC++ */
 CoreExport char * strtok_r(char *_String, const char *_Control, char **_Context);