Mercurial > dwindows
diff dwcompat.c @ 2164:05dd5189099f
Win: Fix some warnings reported with -W3 in Visual C.
Can compile with -W3 by issuing: "set DEBUG=Y" before building.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 30 Sep 2020 22:56:59 +0000 |
parents | d83a86f5fe7f |
children | a126b04b9996 |
line wrap: on
line diff
--- a/dwcompat.c Wed Sep 30 19:34:17 2020 +0000 +++ b/dwcompat.c Wed Sep 30 22:56:59 2020 +0000 @@ -54,8 +54,10 @@ int API makedir(char *path) { -#if defined(__IBMC__) || defined(__WATCOMC__) || defined(_MSC_VER) || defined(__MINGW32__) || defined(__MINGW64__) +#if defined(__IBMC__) || defined(__WATCOMC__) || defined(__MINGW32__) || defined(__MINGW64__) return mkdir(path); +#elif defined(_MSC_VER) + return _mkdir(path); #else return mkdir(path,S_IRWXU); #endif