From 565bef5896885393ef0df6d50efd57f75a5c36ad Mon Sep 17 00:00:00 2001 From: Martin Fouilleul Date: Sat, 9 Sep 2023 15:33:59 +0200 Subject: [PATCH] #if guard vsync API from Orca apps --- src/graphics/graphics.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/graphics/graphics.h b/src/graphics/graphics.h index b9547a8..ad9ee85 100644 --- a/src/graphics/graphics.h +++ b/src/graphics/graphics.h @@ -128,12 +128,14 @@ ORCA_API void oc_surface_send_to_back(oc_surface surface); //DOC: puts surface //------------------------------------------------------------------------------------------ //SECTION: vsync //------------------------------------------------------------------------------------------ +#if !defined(OC_PLATFORM_ORCA) || !OC_PLATFORM_ORCA typedef void (*oc_vsync_callback)(void* data); ORCA_API void oc_vsync_init(void); ORCA_API void oc_vsync_wait(oc_window window); +#endif //------------------------------------------------------------------------------------------ //SECTION: graphics canvas structs //------------------------------------------------------------------------------------------