summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-12 17:57:53 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-12 17:57:53 +0000
commit5862157a0889c0cb9a889a08b1dd0d9959c5b9e9 (patch)
tree8e3c8c24aa104cbd52d9eeab333cc5845b2a50b2
parentcbefea57e9b68df8a272e9041e079b647f627554 (diff)
Mapping for mkdir() to _mkdir() for windows
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9473 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--win/inspircd_win32wrapper.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/win/inspircd_win32wrapper.h b/win/inspircd_win32wrapper.h
index 7de1fb44c..7fef5ff1d 100644
--- a/win/inspircd_win32wrapper.h
+++ b/win/inspircd_win32wrapper.h
@@ -104,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);