medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 2c0c0062e16a06ef9902c5ca3c16167f58cd9741
parent b886cdbdec307a570819df086f7f65e0aec8f7f3
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Fri Dec 30 12:48:22 +0200

Fix Windows build

Diffstat:
platform_io.h | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/platform_io.h b/platform_io.h @@ -3,13 +3,16 @@ #include "platform.h" #if PLATFORM_WINDOWS + #include <windows.h> #include <io.h> -#define ssize_t int +typedef int ssize_t; + #define snprintf _snprintf #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>