From e660d72f378df5439cc383a57d0e45a1f25fbc88 Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Sat, 28 Sep 2002 17:49:45 +0000 Subject: [PATCH] Portability: don't use __BEGIN_DECLS and __END_DECLS. --- include/gedcom.h.in | 8 ++++++-- include/gom.h | 9 +++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/include/gedcom.h.in b/include/gedcom.h.in index 6482c97..263f9fb 100644 --- a/include/gedcom.h.in +++ b/include/gedcom.h.in @@ -27,7 +27,9 @@ #include #include -__BEGIN_DECLS +#ifdef __cplusplus +extern "C" { +#endif #ifndef GEDCOM_INTERNAL #include @@ -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 */ diff --git a/include/gom.h b/include/gom.h index f0952e9..5e33076 100644 --- a/include/gom.h +++ b/include/gom.h @@ -26,7 +26,9 @@ #include "gedcom.h" -__BEGIN_DECLS +#ifdef __cplusplus +extern "C" { +#endif /* Sub-structures */ @@ -414,6 +416,7 @@ struct user_rec { /* Functions */ int gom_parse_file(const char *file_name); +int gom_new_model(); struct header* gom_get_header(); struct submission* gom_get_submission(); @@ -449,6 +452,8 @@ char* gom_get_string_locale(char* data, int* conversion_failures); char* gom_set_string_locale(char** data, const char* locale_value); void gom_set_unknown(const char* unknown); -__END_DECLS +#ifdef __cplusplus +} +#endif #endif /* __GEDCOM_GOM_H */ -- 2.30.2