aboutsummaryrefslogtreecommitdiff
path: root/editors/openoffice-3-devel/files/patch-tools::source::string::charset.cxx
blob: ebee79ce414b9857c6f60e3c3e550751dfcb49a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--- ../tools/source/string/charset.cxx.orig	Sun Mar 10 23:55:47 2002
+++ ../tools/source/string/charset.cxx	Mon Mar 11 00:00:56 2002
@@ -64,12 +64,14 @@
 #elif defined( OS2 )
 #define INCL_DOSNLS
 #include <svpm.h>
-#elif defined(LINUX) || defined(SOLARIS)
+#elif defined(LINUX) || defined(SOLARIS) || defined(FREEBSD)
 #include <stdio.h>
 #include <stdlib.h>
 #include <strings.h>
 #include <locale.h>
+#if !defined(FREEBSD) || OSVERSION > 500000
 #include <langinfo.h>
+#endif
 #ifndef _TOOLS_LANG_HXX
 #include <lang.hxx>
 #endif
@@ -126,7 +128,7 @@
 
 // -----------------------------------------------------------------------
 
-#if defined(NETBSD) || defined(SCO)
+#if defined(NETBSD) || defined(SCO) || defined(FREEBSD)
 
 // check if there is a charset qualifier at the end of the given locale string
 // e.g. de.ISO8859-15 or de.ISO8859-15@euro which strongly indicates what
@@ -707,7 +709,7 @@
 #ifdef UNX
         CharSet nTextEncoding;
 
-#if defined(NETBSD) || defined(SCO)
+#if defined(NETBSD) || defined(SCO) || defined(FREEBSD)
         nTextEncoding = GetSystemCharSetFromEnvironment();
         if (nTextEncoding == RTL_TEXTENCODING_DONTKNOW)
             nTextEncoding = GetSystemCharSetFromSystemLanguage();