From 24a0a4b2035bd57d509e05fcb19e6ffc255cca95 Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Sat, 28 Sep 2002 17:45:35 +0000 Subject: [PATCH] Portability fix: don't use __BEGIN_DECLS and __END_DECLS --- utf8/utf8-locale.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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 */ -- 2.30.2