From 97536e1ee341d054a9b50225b9ce8e2bf41f92aa Mon Sep 17 00:00:00 2001 From: Maschell Date: Tue, 17 Jul 2018 13:21:07 +0200 Subject: [PATCH] Fix the overlays by defining them in a C context. --- src/overlay.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/overlay.cpp b/src/overlay.cpp index 97f3d89..3a7dbaa 100644 --- a/src/overlay.cpp +++ b/src/overlay.cpp @@ -11,6 +11,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + void OSScreenInit(void); void OSScreenShutdown(void); uint32_t OSScreenGetBufferSizeEx(uint32_t bufferNum); @@ -23,9 +27,6 @@ void OSScreenPutPixelEx(uint32_t bufferNum, uint32_t posX, uint32_t posY, uint32 static OverlayOpenFunction overlayfunction_ptr __attribute__((section(".data"))) = NULL; -#ifdef __cplusplus -extern "C" { -#endif void WUPS_InitOverlay(wups_loader_init_overlay_args_t args) { overlayfunction_ptr = args.overlayfunction_ptr; }