Mercurial > dwindows
diff dwcompat.c @ 1839:22225eb286e5
Fixes for building with MINGW64 (specifically http://tdm-gcc.tdragon.net/).
Currently a few things are missing, themes and HTML rendering but it builds
in both 32bit and 64bit mode. There are also warnings generated by gcc
every time the source calls a Windows API macro. (unused result warning).
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 19 Nov 2012 19:52:36 +0000 |
parents | b217cf9161c7 |
children | 02a23143334c |
line wrap: on
line diff
--- a/dwcompat.c Fri Nov 16 21:18:20 2012 +0000 +++ b/dwcompat.c Mon Nov 19 19:52:36 2012 +0000 @@ -1,4 +1,4 @@ -/* $Id$ */ +/* $Id: dwcompat.c 1717 2012-05-05 22:44:27Z bsmith $ */ #undef UNICODE #undef _UNICODE @@ -8,6 +8,7 @@ #if defined(__OS2__) || defined(__WIN32__) #include <share.h> #endif +#define _DW_INTERNAL #include "dwcompat.h" #include "dw.h" @@ -53,8 +54,8 @@ int API makedir(char *path) { -#if defined(__IBMC__) || defined(__WATCOMC__) || (defined(__WIN32__) && !defined(__CYGWIN32__)) - return mkdir(path, 0); +#if defined(__IBMC__) || defined(__WATCOMC__) || defined(_MSC_VER) || defined(__MINGW32__) || defined(__MINGW64__) + return mkdir(path); #else return mkdir(path,S_IRWXU); #endif