STLport-4.5.3.patch 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  1. diff -urN STLport-4.5.3/Makefile STLport-4.5.3-devel/Makefile
  2. --- STLport-4.5.3/Makefile Wed Dec 31 17:00:00 1969
  3. +++ STLport-4.5.3-devel/Makefile Tue Jan 7 15:28:08 2003
  4. @@ -0,0 +1,44 @@
  5. +# Makefile to compile stlport with uClibc
  6. +#
  7. +# Copyright (C) 2002 Erik Andersen <andersen@codepoet.org>
  8. +#
  9. +# This program is free software; you can redistribute it and/or modify
  10. +# it under the terms of the GNU General Public License as published by
  11. +# the Free Software Foundation; either version 2 of the License, or
  12. +# (at your option) any later version.
  13. +#
  14. +# This program is distributed in the hope that it will be useful,
  15. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. +# General Public License for more details.
  18. +#
  19. +# You should have received a copy of the GNU General Public License
  20. +# along with this program; if not, write to the Free Software
  21. +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  22. +
  23. +ARCH:=i386
  24. +PREFIX:=/usr/$(ARCH)-linux-uclibc
  25. +CROSS:= $(PREFIX)/../bin/$(ARCH)-linux-uclibc-
  26. +CC=$(CROSS)gcc
  27. +CXX=$(CROSS)g++
  28. +AR = $(CROSS)ar
  29. +STRIP = $(CROSS)strip --remove-section=.comment --remove-section=.note --strip-unneeded
  30. +.EXPORT_ALL_VARIABLES:
  31. +
  32. +all:
  33. + rm -f lib/lib*
  34. + make -C src -f gcc-uClibc.mak all
  35. + (cd lib; rm -f libstdc++_debug.so; \
  36. + ln -fs libstdc++.so.4.5 libstdc++.so; \
  37. + ln -fs libstdc++.so.4.5 libstdc++.so.0;)
  38. + $(STRIP) lib/libstdc++.so.4.5;
  39. +
  40. +clean:
  41. + make -C src -f gcc-uClibc.mak clean
  42. + rm -rf lib/*
  43. +
  44. +install:
  45. + (cd lib; \
  46. + cp -a libstdc++.a $(PREFIX)/lib; \
  47. + cp -a libstdc++.so libstdc++.so.0 libstdc++.so.4.5 $(PREFIX)/lib;)
  48. + cp -a stlport $(PREFIX)/include/c++
  49. diff -urN STLport-4.5.3/src/dll_main.cpp STLport-4.5.3-devel/src/dll_main.cpp
  50. --- STLport-4.5.3/src/dll_main.cpp Sat Feb 2 16:11:56 2002
  51. +++ STLport-4.5.3-devel/src/dll_main.cpp Tue Jan 7 15:28:08 2003
  52. @@ -52,7 +52,7 @@
  53. # include <locale>
  54. # endif
  55. -# if defined (_STLP_UNIX)
  56. +# if defined (_STLP_UNIX) && defined (_STLP_PTHREADS) && ! defined (_STLP_USE_UCLIBC)
  57. # define _STLP_HAS_PERTHREAD_ALLOCATOR
  58. # include <stl/_pthread_alloc.h>
  59. # endif
  60. diff -urN STLport-4.5.3/src/gcc-uClibc.mak STLport-4.5.3-devel/src/gcc-uClibc.mak
  61. --- STLport-4.5.3/src/gcc-uClibc.mak Wed Dec 31 17:00:00 1969
  62. +++ STLport-4.5.3-devel/src/gcc-uClibc.mak Tue Jan 7 15:28:08 2003
  63. @@ -0,0 +1,61 @@
  64. +#
  65. +# Basename for libraries
  66. +#
  67. +LIB_BASENAME:=libstdc++
  68. +LIB_SHAREDNAME:=$(LIB_BASENAME).so
  69. +LIB_SHAREDNAME_FULL:=$(LIB_SHAREDNAME).0
  70. +
  71. +#
  72. +# guts for common stuff
  73. +#
  74. +#
  75. +LINK:=$(AR) -cr
  76. +#DYN_LINK:=$(CC) -fno-exceptions -lpthread -lm -shared -Wl,-soname=$(LIB_SHAREDNAME_FULL) -o
  77. +DYN_LINK:=$(CC) -fno-exceptions -shared -Wl,-soname=$(LIB_SHAREDNAME_FULL) -o
  78. +
  79. +OBJEXT=o
  80. +DYNEXT=so
  81. +STEXT=a
  82. +RM=rm -rf
  83. +PATH_SEP=/
  84. +MKDIR=mkdir -p
  85. +COMP=GCC$(ARCH)
  86. +INSTALL_STEP = install_unix
  87. +
  88. +all: release_dynamic release_static
  89. +#all: all_dynamic all_static symbolic_links
  90. +
  91. +include common_macros.mak
  92. +STLDEBUG_NAME:=$(LIB_BASENAME).debug
  93. +
  94. +# Lets disable exception support, since this saves over 200k...
  95. +DEFINE_FLAGS:= -fno-exceptions
  96. +#DEFINE_FLAGS:= -D_STLP_NO_EXCEPTIONS -fno-exceptions -DSTL_NO_EXCEPTIONS
  97. +
  98. +#DEFINE_FLAGS+= -D_STLP_USE_UCLIBC -D_STLP_NO_WCHAR_T \
  99. +# -DUSE_SPRINTF_INSTEAD -D_ISOC99_SOURCE
  100. +
  101. +WARNING_FLAGS:= -W -Wno-sign-compare -Wno-unused -Wno-uninitialized
  102. +INCLUDE_FLAGS = -I${STLPORT_DIR}
  103. +CXXFLAGS_COMMON = $(WARNING_FLAGS) $(DEFINE_FLAGS) $(INCLUDE_FLAGS)
  104. +
  105. +CXXFLAGS_RELEASE_static = $(CXXFLAGS_COMMON) -Os
  106. +CXXFLAGS_RELEASE_dynamic = $(CXXFLAGS_COMMON) -Os -fPIC
  107. +
  108. +CXXFLAGS_DEBUG_static = $(CXXFLAGS_COMMON) -O -g
  109. +CXXFLAGS_DEBUG_dynamic = $(CXXFLAGS_COMMON) -O -g -fPIC
  110. +
  111. +CXXFLAGS_STLDEBUG_static = $(CXXFLAGS_DEBUG_static) -D_STLP_DEBUG
  112. +CXXFLAGS_STLDEBUG_dynamic = $(CXXFLAGS_DEBUG_dynamic) -D_STLP_DEBUG -fPIC
  113. +
  114. +include common_percent_rules.mak
  115. +include common_rules.mak
  116. +
  117. +
  118. +#install: all
  119. +# cp -p $(LIB_TARGET) ${D_LIB_TARGET} ../lib
  120. +
  121. +#%.s: %.cpp
  122. +# $(CXX) $(CXXFLAGS) -O4 -S -pto $< -o $@
  123. +
  124. +
  125. diff -urN STLport-4.5.3/src/num_put_float.cpp STLport-4.5.3-devel/src/num_put_float.cpp
  126. --- STLport-4.5.3/src/num_put_float.cpp Fri Jan 18 15:06:52 2002
  127. +++ STLport-4.5.3-devel/src/num_put_float.cpp Tue Jan 7 15:28:08 2003
  128. @@ -65,6 +65,12 @@
  129. # endif
  130. +# if defined(_STLP_USE_UCLIBC)
  131. +# define __USE_ISOC99 1
  132. +# include <math.h>
  133. +# include <float.h>
  134. +# endif
  135. +
  136. # include <cstdlib>
  137. #if defined (_MSC_VER) || defined (__MINGW32__) || defined (__BORLANDC__) || defined (__DJGPP) || defined (_STLP_SCO_OPENSERVER) || defined (__NCR_SVR)
  138. @@ -209,7 +215,7 @@
  139. #ifdef USE_SPRINTF_INSTEAD
  140. -#elif defined (__hpux) || defined (__DJGPP) || ( defined(_STLP_USE_GLIBC) && ! defined (__MSL__) )
  141. +#elif defined (__hpux) || defined (__DJGPP) || ( defined(_STLP_USE_GLIBC) && ! defined (__MSL__) ) || defined (_STLP_USE_UCLIBC)
  142. # if defined (isfinite)
  143. inline bool _Stl_is_nan_or_inf(double x) { return !isfinite(x); }
  144. # else
  145. @@ -238,7 +244,7 @@
  146. }
  147. inline bool _Stl_is_neg_inf(double x) { return _fpclass(x) == _FPCLASS_NINF; }
  148. inline bool _Stl_is_neg_nan(double x) { return _isnan(x) && _copysign(1., x) < 0 ; }
  149. -#elif defined(__MRC__) || defined(__SC__) //*TY 02/24/2000 - added support for MPW
  150. +#elif defined(__MRC__) || defined(__SC__)
  151. bool _Stl_is_nan_or_inf(double x) { return isnan(x) || !isfinite(x); }
  152. bool _Stl_is_inf(double x) { return !isfinite(x); }
  153. bool _Stl_is_neg_inf(double x) { return !isfinite(x) && signbit(x); }
  154. @@ -280,7 +286,7 @@
  155. inline char* _Stl_qfcvtR(long double x, int n, int* pt, int* sign, char* buf)
  156. { return fcvtbuf(x, n, pt, sign, buf); }
  157. # endif
  158. -#elif defined (_STLP_USE_GLIBC)
  159. +#elif defined (_STLP_USE_GLIBC) || defined(_STLP_USE_UCLIBC)
  160. inline char* _Stl_ecvtR(double x, int n, int* pt, int* sign, char* buf)
  161. { return buf + ecvt_r(x, n, pt, sign, buf, NDIG+2); }
  162. inline char* _Stl_fcvtR(double x, int n, int* pt, int* sign, char* buf)
  163. diff -urN STLport-4.5.3/src/stdio_streambuf.cpp STLport-4.5.3-devel/src/stdio_streambuf.cpp
  164. --- STLport-4.5.3/src/stdio_streambuf.cpp Thu Jan 10 11:41:52 2002
  165. +++ STLport-4.5.3-devel/src/stdio_streambuf.cpp Tue Jan 7 15:28:08 2003
  166. @@ -82,7 +82,7 @@
  167. _STLP_VENDOR_CSTD::fgetpos(_M_file, &pos);
  168. // added 21 june 00 mdb,rjf,wjs: glibc 2.2 changed fpos_t to be a struct instead
  169. // of a primitive type
  170. -#if (defined(__GLIBC__) && ( (__GLIBC__ > 2) || ( (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 2) ) ) )
  171. +#if defined(_STLP_USE_UCLIBC) || (defined(__GLIBC__) && defined(_STLP_USE_GLIBC) && ( (__GLIBC__ > 2) || ( (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 2) ) ) )
  172. return pos_type((streamoff)pos.__pos);
  173. #elif defined(__ISCPP__) || defined(__MVS__) || (__OS400__)
  174. return pos_type(pos.__fpos_elem[ 0 ]);
  175. @@ -101,13 +101,16 @@
  176. // added 21 june 00 mdb,rjf,wjs: glibc 2.2 changed fpos_t to be a struct instead
  177. // of a primitive type
  178. -#if (defined(__GLIBC__) && ( (__GLIBC__ > 2) || ( (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 2) ) ) )
  179. +#if (defined(__GLIBC__) && defined(_STLP_USE_GLIBC) && ( (__GLIBC__ > 2) || ( (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 2) ) ) )
  180. fpos_t p;
  181. p.__pos = pos;
  182. memset( &(p.__state), 0, sizeof(p.__state) );
  183. #elif defined(__MVS__) || (__OS400__)
  184. fpos_t p;
  185. p.__fpos_elem[0] = pos;
  186. +#elif defined(_STLP_USE_UCLIBC)
  187. + fpos_t p;
  188. + p.__pos = pos;
  189. #else
  190. fpos_t p(pos);
  191. #endif
  192. diff -urN STLport-4.5.3/stlport/config/_prolog.h STLport-4.5.3-devel/stlport/config/_prolog.h
  193. --- STLport-4.5.3/stlport/config/_prolog.h Sun Oct 28 13:26:44 2001
  194. +++ STLport-4.5.3-devel/stlport/config/_prolog.h Tue Jan 7 15:28:08 2003
  195. @@ -1,3 +1,8 @@
  196. +/* Evil hack to make sure everything behaves itself */
  197. +#define _STLP_USE_UCLIBC
  198. +//#define _STLP_NO_WCHAR_T
  199. +//#define _ISOC99_SOURCE
  200. +//#define USE_SPRINTF_INSTEAD
  201. #if defined (_STLP_MSVC) || defined (__ICL) || defined (__BORLANDC__)
  202. diff -urN STLport-4.5.3/stlport/config/stl_gcc.h STLport-4.5.3-devel/stlport/config/stl_gcc.h
  203. --- STLport-4.5.3/stlport/config/stl_gcc.h Thu Jan 10 11:41:58 2002
  204. +++ STLport-4.5.3-devel/stlport/config/stl_gcc.h Tue Jan 7 15:28:08 2003
  205. @@ -3,7 +3,7 @@
  206. */
  207. /* Systems having GLIBC installed have different traits */
  208. -#if ! defined (_STLP_USE_GLIBC) && ( defined (__linux__) || defined (__CYGWIN__) )
  209. +#if ! defined (_STLP_USE_GLIBC) && ! defined (_STLP_USE_UCLIBC) && ( defined (__linux__) || defined (__CYGWIN__) )
  210. # define _STLP_USE_GLIBC
  211. #endif
  212. diff -urN STLport-4.5.3/stlport/cstdlib STLport-4.5.3-devel/stlport/cstdlib
  213. --- STLport-4.5.3/stlport/cstdlib Thu Aug 23 15:51:54 2001
  214. +++ STLport-4.5.3-devel/stlport/cstdlib Tue Jan 7 15:28:08 2003
  215. @@ -55,9 +55,11 @@
  216. using _STLP_VENDOR_CSTD::atof;
  217. using _STLP_VENDOR_CSTD::atoi;
  218. using _STLP_VENDOR_CSTD::atol;
  219. +# ifndef _STLP_USE_UCLIBC
  220. using _STLP_VENDOR_CSTD::mblen;
  221. using _STLP_VENDOR_CSTD::mbstowcs;
  222. using _STLP_VENDOR_CSTD::mbtowc;
  223. +# endif
  224. using _STLP_VENDOR_CSTD::strtod;
  225. using _STLP_VENDOR_CSTD::strtol;
  226. using _STLP_VENDOR_CSTD::strtoul;
  227. diff -urN STLport-4.5.3/stlport/stl/_config.h STLport-4.5.3-devel/stlport/stl/_config.h
  228. --- STLport-4.5.3/stlport/stl/_config.h Fri Jan 18 15:08:36 2002
  229. +++ STLport-4.5.3-devel/stlport/stl/_config.h Tue Jan 7 15:28:08 2003
  230. @@ -26,6 +26,16 @@
  231. #ifndef _STLP_CONFIG_H
  232. # define _STLP_CONFIG_H
  233. +/* Make the STLport headers provide uClibc support by default */
  234. +#define _STLP_NO_EXCEPTIONS 1
  235. +#define STL_NO_EXCEPTIONS 1
  236. +#define _STLP_USE_UCLIBC 1
  237. +//#define _STLP_NO_WCHAR_T 1
  238. +#define _STLP_NO_LONG_DOUBLE 1
  239. +#define USE_SPRINTF_INSTEAD 1
  240. +#define _ISOC99_SOURCE 1
  241. +#define _STLP_NO_ANACHRONISMS 1
  242. +
  243. /*
  244. * Purpose of this file :
  245. *
  246. @@ -164,7 +174,7 @@
  247. /* Operating system recognition (basic) */
  248. # if defined (__unix) || defined (__linux__) || defined (__QNX__) || defined (_AIX) || defined (__NetBSD__) || defined (__Lynx__)
  249. # define _STLP_UNIX 1
  250. -# if defined (__linux__) && ! defined (_STLP_USE_GLIBC)
  251. +# if defined (__linux__) && ! defined (_STLP_USE_GLIBC) && ! defined (_STLP_USE_UCLIBC)
  252. # define _STLP_USE_GLIBC 1
  253. # endif
  254. # elif defined(macintosh) || defined (_MAC)
  255. diff -urN STLport-4.5.3/stlport/stl/_stdio_file.h STLport-4.5.3-devel/stlport/stl/_stdio_file.h
  256. --- STLport-4.5.3/stlport/stl/_stdio_file.h Fri Jan 18 15:07:00 2002
  257. +++ STLport-4.5.3-devel/stlport/stl/_stdio_file.h Tue Jan 7 15:28:08 2003
  258. @@ -634,6 +634,112 @@
  259. }
  260. # define _STLP_FILE_I_O_IDENTICAL
  261. +#elif defined(_STLP_USE_UCLIBC)
  262. +
  263. +#if defined(__MASK_READING)
  264. +
  265. +inline int _FILE_fd(const FILE *__f) { return __f->__filedes; }
  266. +
  267. +// Returns a pointer to the beginning of the buffer.
  268. +inline char* _FILE_I_begin(const FILE *__f) { return (char*) __f->__bufstart; }
  269. +
  270. +// Returns the current read/write position within the buffer.
  271. +inline char* _FILE_I_next(const FILE *__f) { return (char*) __f->__bufpos; }
  272. +
  273. +// Returns a pointer immediately past the end of the buffer.
  274. +inline char* _FILE_I_end(const FILE *__f) { return (char*)__f->__bufend; }
  275. +
  276. +// Returns the number of characters remaining in the buffer, i.e.
  277. +// _FILE_[IO]_end(__f) - _FILE_[IO]_next(__f).
  278. +inline ptrdiff_t _FILE_I_avail(const FILE *__f)
  279. + { return __f->__bufgetc_u - __f->__bufpos; }
  280. +
  281. +// Increments the current read/write position by 1, returning the
  282. +// character at the old position.
  283. +inline char& _FILE_I_preincr(FILE *__f) { return *(char*)(++__f->__bufpos); }
  284. +
  285. +// Increments the current read/write position by 1, returning the
  286. +// character at the old position.
  287. +inline char& _FILE_I_postincr(FILE *__f) { return *(char*)(__f->__bufpos++); }
  288. +
  289. +// Decrements the current read/write position by 1, returning the
  290. +// character at the old position.
  291. +inline char& _FILE_I_predecr(FILE *__f) { return *(char*)(--__f->__bufpos); }
  292. +
  293. +// Decrements the current read/write position by 1, returning the
  294. +// character at the old position.
  295. +inline char& _FILE_I_postdecr(FILE *__f) { return *(char*)(__f->__bufpos--); }
  296. +
  297. +// Increments the current read/write position by __n.
  298. +inline void _FILE_I_bump(FILE *__f, int __n) { __f->__bufpos += __n; }
  299. +
  300. +// Sets the beginning of the bufer to __begin, the current read/write
  301. +// position to __next, and the buffer's past-the-end pointer to __end.
  302. +// If any of those pointers is null, then all of them must be null.
  303. +inline void _FILE_I_set(FILE *__f, char* __begin, char* __next, char* __end)
  304. +{
  305. + __f->__bufstart = (unsigned char*)__begin;
  306. + __f->__bufpos = (unsigned char*)__next;
  307. + __f->__bufend = (unsigned char*)__end;
  308. + __f->__bufgetc_u = (unsigned char*)__begin;
  309. + __f->__bufputc_u = (unsigned char*)__end;
  310. +}
  311. +
  312. +# define _STLP_FILE_I_O_IDENTICAL
  313. +
  314. +#else // Support old stdio for a little while.
  315. +
  316. +inline int _FILE_fd(const FILE *__f) { return __f->filedes; }
  317. +
  318. +// Returns a pointer to the beginning of the buffer.
  319. +inline char* _FILE_I_begin(const FILE *__f) { return (char*) __f->bufstart; }
  320. +
  321. +// Returns the current read/write position within the buffer.
  322. +inline char* _FILE_I_next(const FILE *__f) { return (char*) __f->bufpos; }
  323. +
  324. +// Returns a pointer immediately past the end of the buffer.
  325. +inline char* _FILE_I_end(const FILE *__f) { return (char*)__f->bufend; }
  326. +
  327. +// Returns the number of characters remaining in the buffer, i.e.
  328. +// _FILE_[IO]_end(__f) - _FILE_[IO]_next(__f).
  329. +inline ptrdiff_t _FILE_I_avail(const FILE *__f)
  330. + { return __f->bufgetc - __f->bufpos; }
  331. +
  332. +// Increments the current read/write position by 1, returning the
  333. +// character at the old position.
  334. +inline char& _FILE_I_preincr(FILE *__f) { return *(char*)(++__f->bufpos); }
  335. +
  336. +// Increments the current read/write position by 1, returning the
  337. +// character at the old position.
  338. +inline char& _FILE_I_postincr(FILE *__f) { return *(char*)(__f->bufpos++); }
  339. +
  340. +// Decrements the current read/write position by 1, returning the
  341. +// character at the old position.
  342. +inline char& _FILE_I_predecr(FILE *__f) { return *(char*)(--__f->bufpos); }
  343. +
  344. +// Decrements the current read/write position by 1, returning the
  345. +// character at the old position.
  346. +inline char& _FILE_I_postdecr(FILE *__f) { return *(char*)(__f->bufpos--); }
  347. +
  348. +// Increments the current read/write position by __n.
  349. +inline void _FILE_I_bump(FILE *__f, int __n) { __f->bufpos += __n; }
  350. +
  351. +// Sets the beginning of the bufer to __begin, the current read/write
  352. +// position to __next, and the buffer's past-the-end pointer to __end.
  353. +// If any of those pointers is null, then all of them must be null.
  354. +inline void _FILE_I_set(FILE *__f, char* __begin, char* __next, char* __end)
  355. +{
  356. + __f->bufstart = (unsigned char*)__begin;
  357. + __f->bufpos = (unsigned char*)__next;
  358. + __f->bufend = (unsigned char*)__end;
  359. + __f->bufgetc = (unsigned char*)__begin;
  360. + __f->bufputc = (unsigned char*)__end;
  361. +}
  362. +
  363. +# define _STLP_FILE_I_O_IDENTICAL
  364. +
  365. +#endif
  366. +
  367. #else /* A C library that we don't have an implementation for. */
  368. # error The C++ I/O library is not configured for this compiler
  369. diff -urN STLport-4.5.3/stlport/stl/c_locale.h STLport-4.5.3-devel/stlport/stl/c_locale.h
  370. --- STLport-4.5.3/stlport/stl/c_locale.h Fri Jan 18 15:07:00 2002
  371. +++ STLport-4.5.3-devel/stlport/stl/c_locale.h Wed Jan 8 10:58:10 2003
  372. @@ -401,6 +401,21 @@
  373. # define _Locale_SPACE _S
  374. # define _Locale_PRINT (_P | _U | _L | _N | _B)
  375. # define _Locale_ALPHA (_U | _L)
  376. +
  377. +# elif defined(_STLP_USE_UCLIBC) /* linux, using the gnu compiler */
  378. +
  379. +# define _Locale_CNTRL _IScntrl
  380. +# define _Locale_UPPER _ISupper
  381. +# define _Locale_LOWER _ISlower
  382. +# define _Locale_DIGIT _ISdigit
  383. +# define _Locale_XDIGIT _ISxdigit
  384. +# define _Locale_PUNCT _ISpunct
  385. +# define _Locale_SPACE _ISspace
  386. +# define _Locale_PRINT _ISprint
  387. +# define _Locale_ALPHA _ISalpha
  388. +
  389. +#else
  390. +# error Unknown Locale
  391. #endif
  392. # endif /* _STLP_C_LOCALE_H */