From ed13de131debd3de202e4cc2e946cd4b69ec7ad9 Mon Sep 17 00:00:00 2001 From: Cary R Date: Sun, 18 Dec 2011 11:41:21 -0800 Subject: [PATCH] Use mkdir() instead of _mkdir() for MinGW MinGW-w64 requires the use of mkdir() and MinGW-w32 appears to support both so use mkdir() to allow compilation to work with both versions. --- vhdlpp/main.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vhdlpp/main.cc b/vhdlpp/main.cc index 7901b699e..e7cf565ae 100644 --- a/vhdlpp/main.cc +++ b/vhdlpp/main.cc @@ -81,9 +81,12 @@ const char NOTICE[] = # include #endif # include +// MinGW only supports mkdir() with a path. If this stops working because +// we need to use _mkdir() for mingw-w32 and mkdir() for mingw-w64 look +// at using the autoconf AX_FUNC_MKDIR macro to figure this all out. #if defined(__MINGW32__) # include -# define mkdir(path, mode) _mkdir(path) +# define mkdir(path, mode) mkdir(path) #endif