C++ compatibility
authorMathis Rosenhauer <rosenhauer@dkrz.de>
Tue, 27 Jun 2017 14:22:58 +0000 (16:22 +0200)
committerMathis Rosenhauer <rosenhauer@dkrz.de>
Tue, 27 Jun 2017 14:22:58 +0000 (16:22 +0200)
src/libaec.h

index bb399d9..333989c 100644 (file)
 
 #include <stddef.h>
 
+#ifdef __cplusplus
+extern "C"{
+#endif
+
 #if BUILDING_LIBAEC && HAVE_VISIBILITY
 #  define LIBAEC_DLL_EXPORTED __attribute__((__visibility__("default")))
 #elif BUILDING_LIBAEC && defined _MSC_VER
@@ -165,4 +169,8 @@ LIBAEC_DLL_EXPORTED int aec_decode_end(struct aec_stream *strm);
 LIBAEC_DLL_EXPORTED int aec_buffer_encode(struct aec_stream *strm);
 LIBAEC_DLL_EXPORTED int aec_buffer_decode(struct aec_stream *strm);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* LIBAEC_H */