medfall

A super great game engine
Log | Files | Refs

commit 2975d9ed9c504982a804c237fc9d33c9b69c0467
parent a7749811a8f94873062c8a6f85885deedfc5c61e
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sun Jul 16 15:27:08 +0300

Use A functions

Diffstat:
platform_io.h | 2+-
win32_exec.h | 4++--
win32_semaphore.h | 2+-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/platform_io.h b/platform_io.h @@ -12,7 +12,7 @@ typedef int ssize_t; #endif #define snprintf _snprintf -#define mkdir( path, mode ) ( CreateDirectory( path, NULL ) != 0 ? 0 : -1 ) +#define mkdir( path, mode ) ( CreateDirectoryA( path, NULL ) != 0 ? 0 : -1 ) #define rmdir( path ) ( RemoveDirectory( path ) != 0 ? 0 : -1 ) #elif PLATFORM_UNIX diff --git a/win32_exec.h b/win32_exec.h @@ -5,12 +5,12 @@ #include "log.h" void replace_process_with( const char * path ) { - STARTUPINFO startup_info = { }; + STARTUPINFOA startup_info = { }; startup_info.cb = sizeof( startup_info ); PROCESS_INFORMATION process_info = { }; - if( CreateProcess( path, NULL, 0, 0, FALSE, 0, NULL, NULL, &startup_info, &process_info ) == 0 ) { + if( CreateProcessA( path, NULL, 0, 0, FALSE, 0, NULL, NULL, &startup_info, &process_info ) == 0 ) { FATAL( "CreateProcess" ); } diff --git a/win32_semaphore.h b/win32_semaphore.h @@ -10,7 +10,7 @@ struct PlatformSemaphore { inline void platform_semaphore_init( PlatformSemaphore * sem ) { LONG max = 1024; // TODO - sem->sem = CreateSemaphore( NULL, 0, max, NULL ); + sem->sem = CreateSemaphoreA( NULL, 0, max, NULL ); if( sem->sem == NULL ) { FATAL( "CreateSemaphore" ); }