commit 1ea7d06e5b00db8ff8a87db9867ba0fe97751ace parent 8faf66cd6f8eaae9b3ad614b783ead6209251b77 Author: Michael Savage <mikejsavage@gmail.com> Date: Sun Nov 20 13:09:54 +0200 rmdir for Windows Diffstat:
platform_io.h | | | 3 | ++- |
diff --git a/platform_io.h b/platform_io.h @@ -9,7 +9,8 @@ #define ssize_t int #define snprintf _snprintf -#define mkdir( path, mode ) ( CreateDirectory( path, NULL ) ? 0 : -1 ) +#define mkdir( path, mode ) ( CreateDirectory( path, NULL ) != 0 ? 0 : -1 ) +#define rmdir( path ) ( RemoveDirectory( path ) != 0 ? 0 : -1 ) #elif PLATFORM_UNIX #include <sys/stat.h> #include <sys/types.h>