From: Peter Verthez Date: Sat, 28 Sep 2002 17:45:35 +0000 (+0000) Subject: Portability fix: don't use __BEGIN_DECLS and __END_DECLS X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=24a0a4b2035bd57d509e05fcb19e6ffc255cca95;p=gedcom-parse.git Portability fix: don't use __BEGIN_DECLS and __END_DECLS --- diff --git a/utf8/utf8-locale.h b/utf8/utf8-locale.h index ffe974b..b8a752b 100644 --- a/utf8/utf8-locale.h +++ b/utf8/utf8-locale.h @@ -12,14 +12,16 @@ #ifndef __UTF8_LOCALE_H #define __UTF8_LOCALE_H -#include - -__BEGIN_DECLS +#ifdef __cplusplus +extern "C" { +#endif void convert_set_unknown(const char* unknown); -char* convert_utf8_to_locale(char* input, int *conv_fails); -char* convert_locale_to_utf8(char* input); +char* convert_utf8_to_locale(const char* input, int *conv_fails); +char* convert_locale_to_utf8(const char* input); -__END_DECLS +#ifdef __cplusplus +} +#endif #endif /* __UTF8_LOCALE_H */