Zig bindings for orca (still WIP) #140

Open
rdunnington wants to merge 24 commits from zig_ffi into main
3 changed files with 11 additions and 13 deletions
Showing only changes of commit b85efa4bc7 - Show all commits

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"