From b85efa4bc75764f111ee01d44048165ff26535d6 Mon Sep 17 00:00:00 2001 From: Reuben Dunnington Date: Mon, 11 Sep 2023 23:10:28 -0700 Subject: [PATCH] fix oc_get_host_platform declaration --- src/platform/osx_platform.c | 11 +++++------ src/platform/platform.h | 2 +- src/platform/win32_platform.c | 11 +++++------ 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/platform/osx_platform.c b/src/platform/osx_platform.c index c9ab756..56ee617 100644 --- a/src/platform/osx_platform.c +++ b/src/platform/osx_platform.c @@ -8,14 +8,13 @@ #include "platform.h" #ifdef __cplusplus -extern "C" -{ +extern "C" { #endif - oc_host_platform oc_get_host_platform() - { - return OC_HOST_PLATFORM_MACOS; - } +oc_host_platform oc_get_host_platform(void) +{ + return OC_HOST_PLATFORM_MACOS; +} #ifdef __cplusplus } // extern "C" diff --git a/src/platform/platform.h b/src/platform/platform.h index 3ec268c..b4e70e7 100644 --- a/src/platform/platform.h +++ b/src/platform/platform.h @@ -121,7 +121,7 @@ typedef enum OC_HOST_PLATFORM_WINDOWS, } oc_host_platform; -ORCA_API oc_host_platform oc_get_host_platform(); +ORCA_API oc_host_platform oc_get_host_platform(void); #ifdef __cplusplus } // extern "C" diff --git a/src/platform/win32_platform.c b/src/platform/win32_platform.c index 1d82f90..78c976a 100644 --- a/src/platform/win32_platform.c +++ b/src/platform/win32_platform.c @@ -8,14 +8,13 @@ #include "platform.h" #ifdef __cplusplus -extern "C" -{ +extern "C" { #endif - oc_host_platform oc_get_host_platform() - { - return OC_HOST_PLATFORM_WINDOWS; - } +oc_host_platform oc_get_host_platform(void) +{ + return OC_HOST_PLATFORM_WINDOWS; +} #ifdef __cplusplus } // extern "C"