From 4fc8bf916f4703f0f702c8db2302a779aba79650 Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Tue, 19 Nov 2013 14:07:45 -0500 Subject: [PATCH] Add extern C --- IO/third_party/tga/targa.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/IO/third_party/tga/targa.h b/IO/third_party/tga/targa.h index dffea51..5feed67 100755 --- a/IO/third_party/tga/targa.h +++ b/IO/third_party/tga/targa.h @@ -74,7 +74,6 @@ #define TARGA_COLOR_BLUE 3 #define TARGA_COLOR_ALPHA 4 - // define targa public data types typedef struct _Targa { @@ -84,6 +83,9 @@ typedef struct _Targa { unsigned char *image; } Targa; +#ifdef __cplusplus +extern "C" { +#endif // declare targa public functions @@ -222,6 +224,9 @@ int targa_applyRgbaMask(Targa *targa, int colorType, unsigned char value); */ int targa_setRgbaChannel(Targa *targa, int colorType, unsigned char value); +#ifdef __cplusplus +} // extern "C" +#endif #endif // _TARGA_H