summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenton Woods <denton.woods@gmail.com>2016-12-28 18:33:26 -0600
committerDenton Woods <denton.woods@gmail.com>2016-12-28 18:33:26 -0600
commit8c60e2af6afd6b91abcae15f87e94eed5f26fda9 (patch)
treea541f547fe893f71dd3724f4f38f7dcaf1314ea3
parentac1a6549b3f1a2a9f5d73ce5b49cbc60a10c0560 (diff)
downloaddevil-8c60e2af6afd6b91abcae15f87e94eed5f26fda9.tar.gz
- Fixed C++ compilation problem under Windows
-rw-r--r--DevIL/src-IL/include/il_endian.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/DevIL/src-IL/include/il_endian.h b/DevIL/src-IL/include/il_endian.h
index 9e3e5365..004055c9 100644
--- a/DevIL/src-IL/include/il_endian.h
+++ b/DevIL/src-IL/include/il_endian.h
@@ -13,6 +13,10 @@
#ifndef IL_ENDIAN_H
#define IL_ENDIAN_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include "il_internal.h"
#ifdef WORDS_BIGENDIAN // This is defined by ./configure.
@@ -97,4 +101,8 @@ ILubyte SaveBigDouble(ILdouble d);
void EndianSwapData(void *_Image);
+#ifdef __cplusplus
+}
+#endif
+
#endif//ENDIAN_H \ No newline at end of file