summaryrefslogtreecommitdiff
path: root/fribidi_config.h.in
diff options
context:
space:
mode:
authorbehdad <behdad>2002-08-04 19:43:33 +0000
committerbehdad <behdad>2002-08-04 19:43:33 +0000
commit988e5869e6c5d49656cb21de109b11426602e860 (patch)
tree23315de25f6c21ea1ac1e045cd7c5bc8894b9e72 /fribidi_config.h.in
parentc0aef4963735f54ea5d1457f09f19198a6b966ce (diff)
Clean up.
Diffstat (limited to 'fribidi_config.h.in')
-rw-r--r--fribidi_config.h.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/fribidi_config.h.in b/fribidi_config.h.in
index 4eb0185..2e4e3d9 100644
--- a/fribidi_config.h.in
+++ b/fribidi_config.h.in
@@ -23,3 +23,16 @@
#else
#define FRIBIDI_API
#endif
+
+/* __BEGIN_DECLS should be used at the beginning of your declarations,
+ * so that C++ compilers don't mangle their names. Use __END_DECLS at
+ * the end of C declarations. */
+#undef __BEGIN_DECLS
+#undef __END_DECLS
+#ifdef __cplusplus
+#define __BEGIN_DECLS extern "C" {
+#define __END_DECLS }
+#else
+#define __BEGIN_DECLS /* empty */
+#define __END_DECLS /* empty */
+#endif