diff --git a/include/freetype/config/ftconfig.h b/include/freetype/config/ftconfig.h index 854109f5c..7e0892764 100644 --- a/include/freetype/config/ftconfig.h +++ b/include/freetype/config/ftconfig.h @@ -175,13 +175,6 @@ #endif /* FT_MAKE_OPTION_SINGLE_OBJECT */ -#ifdef __cplusplus -#define LOCAL_VAR extern "C" -#else -#define LOCAL_VAR extern -#endif - - #ifndef BASE_DEF #ifdef __cplusplus @@ -245,12 +238,16 @@ /* */ #ifdef __cplusplus +#define LOCAL_VAR extern "C" + #define LOCAL_FUNC_X extern "C" #define FT_CPLUSPLUS( x ) extern "C" x #else +#define LOCAL_VAR extern + #define LOCAL_FUNC_X static #define FT_CPLUSPLUS( x ) x