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"