fix oc_get_host_platform declaration

This commit is contained in:
Reuben Dunnington 2023-09-11 23:10:28 -07:00
parent bded79d363
commit b85efa4bc7
Signed by: rdunnington
GPG Key ID: 3D57C8938EA08E90
3 changed files with 11 additions and 13 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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"