Portability fix: don't use __BEGIN_DECLS and __END_DECLS
authorPeter Verthez <Peter.Verthez@advalvas.be>
Sat, 28 Sep 2002 17:45:35 +0000 (17:45 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Sat, 28 Sep 2002 17:45:35 +0000 (17:45 +0000)
utf8/utf8-locale.h

index ffe974ba9b2edde400fad28a2fcc7a445279fd5d..b8a752b621cbcfd18afebcafd1cb46cc3b2a92d6 100644 (file)
 #ifndef __UTF8_LOCALE_H
 #define __UTF8_LOCALE_H
 
-#include <features.h>
-
-__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 */