medfall

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

commit 861a680f80c46aeb80c3c86bb602b7737c9b0bf5
parent e4cb2f67a6fcf320adbea69c8f956fa481e84122
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Wed Sep 14 15:56:11 +0100

Add platform_io.h

Diffstat:
platform_io.h | 11+++++++++++
pp.cc | 1+
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/platform_io.h b/platform_io.h @@ -0,0 +1,11 @@ +#ifndef _PLATFORM_IO_H_ +#define _PLATFORM_IO_H_ + +#if defined( _WIN32 ) +#define WIN32_LEAN_AND_MEAN +#include <windows.h> + +#define mkdir( path, mode ) ( CreateDirectory( path, NULL ) ? 0 : -1 ) +#endif + +#endif // _PLATFORM_IO_H_ diff --git a/pp.cc b/pp.cc @@ -7,6 +7,7 @@ #include "intrinsics.h" #include "stb_image.h" +#include "platform_io.h" // #include "stb_image_write.h" #include "lz4.h"