Added #ifdef __cplusplus blocks.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 08 May 2011 21:34:49 -0400
changeset 6 b693c592d4ab
parent 5 ab7382a45d11
child 7 341c4de6ffd3
Added #ifdef __cplusplus blocks.
mojodds.h
--- a/mojodds.h	Sun May 08 21:28:28 2011 -0400
+++ b/mojodds.h	Sun May 08 21:34:49 2011 -0400
@@ -2,14 +2,20 @@
 #define _INCL_MOJODDS_H_
 
 /* !!! FIXME: flesh this file out. */
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 int MOJODDS_isDDS(const void *_ptr, const unsigned long _len);
 int MOJODDS_getTexture(const void *_ptr, const unsigned long _len,
                        const void **_tex, unsigned long *_texlen, int *_dxtver,
                        unsigned int *_w, unsigned int *_h);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif
 
 /* end of mojodds.h ... */
 
-