Portability: don't use __BEGIN_DECLS and __END_DECLS.
[gedcom-parse.git] / include / gedcom.h.in
index 6482c97edfe337a568e4b7c6143949c492faa431..263f9fba4d34055f46943ab1b3088e571bb4769b 100644 (file)
@@ -27,7 +27,9 @@
 #include <stdio.h>
 #include <stdarg.h>
 
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 #ifndef GEDCOM_INTERNAL
 #include <gedcom-tags.h>
@@ -504,6 +506,8 @@ int        gedcom_warning(const char* s, ...);
 int        gedcom_message(const char* s, ...);
 int        gedcom_debug_print(const char* s, ...);
 
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
 
 #endif /* __GEDCOM_H */