From 5f46f1804056842117ad08adb2885df96596e6fc Mon Sep 17 00:00:00 2001 From: Syping Date: Fri, 29 Oct 2021 11:58:01 +0200 Subject: [PATCH] skip extern "C" when building without C API --- src/RagePhoto.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/RagePhoto.h b/src/RagePhoto.h index ab796fb..5e38f43 100644 --- a/src/RagePhoto.h +++ b/src/RagePhoto.h @@ -170,14 +170,13 @@ protected: }; #endif +#ifdef LIBRAGEPHOTO_C_API #ifdef __cplusplus extern "C" { #else #include "libragephoto_global.h" #include #endif -#ifdef LIBRAGEPHOTO_C_API - typedef void* ragephoto_t; /** Opens a \p ragephoto_t instance.