From f104dcbdfc52ec6e132d7c840181da2d6e985c50 Mon Sep 17 00:00:00 2001 From: Marrub Date: Sun, 26 Jul 2015 06:07:14 -0400 Subject: [PATCH] add __cplusplus checks because why not --- src/lt.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/lt.h b/src/lt.h index 9225009..f87745f 100644 --- a/src/lt.h +++ b/src/lt.h @@ -115,6 +115,10 @@ typedef struct LT_GarbageList_s * Functions */ +#ifdef __cplusplus +extern "C" { +#endif + void LT_EXPORT LT_Init(LT_Config initCfg); void LT_EXPORT LT_SetConfig(LT_Config newCfg); void LT_EXPORT LT_Quit(void); @@ -137,12 +141,20 @@ char *LT_EXPORT LT_Escaper(char *str, size_t pos, char escape); LT_Token LT_EXPORT LT_GetToken(void); void LT_EXPORT LT_SkipWhite(void); +#ifdef __cplusplus +} +#endif + /* * Variables * Don't include these into FFI declarations. */ +#ifdef __cplusplus +extern "C" const char *LT_EXPORT LT_TkNames[]; +#else extern const char *LT_EXPORT LT_TkNames[]; +#endif #endif