projects
/
platform
/
upstream
/
libaec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f88a84
)
C++ compatibility
author
Mathis Rosenhauer
<rosenhauer@dkrz.de>
Tue, 27 Jun 2017 14:22:58 +0000
(16:22 +0200)
committer
Mathis Rosenhauer
<rosenhauer@dkrz.de>
Tue, 27 Jun 2017 14:22:58 +0000
(16:22 +0200)
src/libaec.h
patch
|
blob
|
history
diff --git
a/src/libaec.h
b/src/libaec.h
index
bb399d9
..
333989c
100644
(file)
--- a/
src/libaec.h
+++ b/
src/libaec.h
@@
-52,6
+52,10
@@
#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 */