equal
deleted
inserted
replaced
69 # include "relocatable.h" |
69 # include "relocatable.h" |
70 #else |
70 #else |
71 # define relocate(pathname) (pathname) |
71 # define relocate(pathname) (pathname) |
72 #endif |
72 #endif |
73 |
73 |
74 #ifdef __SYMBIAN32__ |
74 #ifndef __SYMBIAN32__ |
75 #define LIBDIR "c:\\sys\\bin\\" |
|
76 #endif//__SYMBIAN32__ |
|
77 /* Get LIBDIR. */ |
75 /* Get LIBDIR. */ |
78 #ifndef LIBDIR |
76 #ifndef LIBDIR |
79 # include "configmake.h" |
77 # include "configmake.h" |
80 #endif |
78 #endif |
|
79 #endif//__SYMBIAN32__ |
81 |
80 |
82 #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ |
81 #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ |
83 /* Win32, Cygwin, OS/2, DOS */ |
82 /* Win32, Cygwin, OS/2, DOS */ |
84 # define ISSLASH(C) ((C) == '/' || (C) == '\\') |
83 # define ISSLASH(C) ((C) == '/' || (C) == '\\') |
85 #endif |
84 #endif |
125 |
124 |
126 cp = charset_aliases; |
125 cp = charset_aliases; |
127 if (cp == NULL) |
126 if (cp == NULL) |
128 { |
127 { |
129 #if !(defined VMS || defined WIN32_NATIVE || defined __CYGWIN__) |
128 #if !(defined VMS || defined WIN32_NATIVE || defined __CYGWIN__) |
|
129 #ifndef __SYMBIAN32__ |
130 FILE *fp; |
130 FILE *fp; |
131 const char *dir; |
131 const char *dir; |
132 const char *base = "charset.alias"; |
132 const char *base = "charset.alias"; |
133 char *file_name; |
133 char *file_name; |
134 |
134 |
153 } |
153 } |
154 } |
154 } |
155 |
155 |
156 if (file_name == NULL || (fp = fopen (file_name, "r")) == NULL) |
156 if (file_name == NULL || (fp = fopen (file_name, "r")) == NULL) |
157 /* Out of memory or file not found, treat it as empty. */ |
157 /* Out of memory or file not found, treat it as empty. */ |
|
158 #endif//__SYMBIAN32__ |
158 cp = ""; |
159 cp = ""; |
|
160 #ifndef __SYMBIAN32__ |
159 else |
161 else |
160 { |
162 { |
161 /* Parse the file's contents. */ |
163 /* Parse the file's contents. */ |
162 char *res_ptr = NULL; |
164 char *res_ptr = NULL; |
163 size_t res_size = 0; |
165 size_t res_size = 0; |
222 } |
224 } |
223 } |
225 } |
224 |
226 |
225 if (file_name != NULL) |
227 if (file_name != NULL) |
226 free (file_name); |
228 free (file_name); |
227 |
229 #endif//__SYMBIAN32__ |
228 #else |
230 #else |
229 |
231 |
230 # if defined VMS |
232 # if defined VMS |
231 /* To avoid the troubles of an extra file charset.alias_vms in the |
233 /* To avoid the troubles of an extra file charset.alias_vms in the |
232 sources of many GNU packages, simply inline the aliases here. */ |
234 sources of many GNU packages, simply inline the aliases here. */ |