⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stlport-4.5.3.patch

📁 用于生成linux操作系统下的交叉编译工具链和嵌入式linux系统的根文件系统,支持x86、arm、powerpc等处理器
💻 PATCH
📖 第 1 页 / 共 2 页
字号:
+//#define _STLP_NO_WCHAR_T+//#define _ISOC99_SOURCE+//#define USE_SPRINTF_INSTEAD  #if defined (_STLP_MSVC) || defined (__ICL) || defined (__BORLANDC__) diff -urN STLport-4.5.3/stlport/config/stl_gcc.h STLport-4.5.3-devel/stlport/config/stl_gcc.h--- STLport-4.5.3/stlport/config/stl_gcc.h	Thu Jan 10 11:41:58 2002+++ STLport-4.5.3-devel/stlport/config/stl_gcc.h	Tue Jan  7 15:28:08 2003@@ -3,7 +3,7 @@  */  /* Systems having GLIBC installed have different traits */-#if ! defined (_STLP_USE_GLIBC) && ( defined (__linux__) || defined (__CYGWIN__) )+#if ! defined (_STLP_USE_GLIBC)  && ! defined (_STLP_USE_UCLIBC) && ( defined (__linux__) || defined (__CYGWIN__) ) # define _STLP_USE_GLIBC #endif diff -urN STLport-4.5.3/stlport/cstdlib STLport-4.5.3-devel/stlport/cstdlib--- STLport-4.5.3/stlport/cstdlib	Thu Aug 23 15:51:54 2001+++ STLport-4.5.3-devel/stlport/cstdlib	Tue Jan  7 15:28:08 2003@@ -55,9 +55,11 @@ using _STLP_VENDOR_CSTD::atof; using _STLP_VENDOR_CSTD::atoi; using _STLP_VENDOR_CSTD::atol;+# ifndef _STLP_USE_UCLIBC using _STLP_VENDOR_CSTD::mblen; using _STLP_VENDOR_CSTD::mbstowcs; using _STLP_VENDOR_CSTD::mbtowc;+# endif using _STLP_VENDOR_CSTD::strtod; using _STLP_VENDOR_CSTD::strtol; using _STLP_VENDOR_CSTD::strtoul;diff -urN STLport-4.5.3/stlport/stl/_config.h STLport-4.5.3-devel/stlport/stl/_config.h--- STLport-4.5.3/stlport/stl/_config.h	Fri Jan 18 15:08:36 2002+++ STLport-4.5.3-devel/stlport/stl/_config.h	Tue Jan  7 15:28:08 2003@@ -26,6 +26,16 @@ #ifndef _STLP_CONFIG_H # define _STLP_CONFIG_H +/* Make the STLport headers provide uClibc support by default */+#define _STLP_NO_EXCEPTIONS		1+#define STL_NO_EXCEPTIONS		1+#define _STLP_USE_UCLIBC		1+//#define _STLP_NO_WCHAR_T		1+#define _STLP_NO_LONG_DOUBLE		1+#define USE_SPRINTF_INSTEAD		1+#define _ISOC99_SOURCE			1+#define _STLP_NO_ANACHRONISMS		1+ /*  * Purpose of this file :  *@@ -164,7 +174,7 @@ /* Operating system recognition (basic) */ # if defined (__unix) || defined (__linux__) || defined (__QNX__) || defined (_AIX)  || defined (__NetBSD__) || defined (__Lynx__) #  define _STLP_UNIX 1-#  if defined (__linux__) && ! defined (_STLP_USE_GLIBC)+#  if defined (__linux__) && ! defined (_STLP_USE_GLIBC) && ! defined (_STLP_USE_UCLIBC) #   define _STLP_USE_GLIBC 1 #  endif # elif defined(macintosh) || defined (_MAC)diff -urN STLport-4.5.3/stlport/stl/_stdio_file.h STLport-4.5.3-devel/stlport/stl/_stdio_file.h--- STLport-4.5.3/stlport/stl/_stdio_file.h	Fri Jan 18 15:07:00 2002+++ STLport-4.5.3-devel/stlport/stl/_stdio_file.h	Tue Jan  7 15:28:08 2003@@ -634,6 +634,112 @@ } # define _STLP_FILE_I_O_IDENTICAL +#elif defined(_STLP_USE_UCLIBC)++#if defined(__MASK_READING)++inline int   _FILE_fd(const FILE *__f) { return __f->__filedes; }++//       Returns a pointer to the beginning of the buffer.+inline char* _FILE_I_begin(const FILE *__f) { return (char*) __f->__bufstart; }++//       Returns the current read/write position within the buffer.+inline char* _FILE_I_next(const FILE *__f) { return (char*) __f->__bufpos; }++//       Returns a pointer immediately past the end of the buffer.+inline char* _FILE_I_end(const FILE *__f) { return (char*)__f->__bufend; }++//       Returns the number of characters remaining in the buffer, i.e.+//       _FILE_[IO]_end(__f) - _FILE_[IO]_next(__f).+inline ptrdiff_t _FILE_I_avail(const FILE *__f) +  { return __f->__bufgetc_u - __f->__bufpos; }++//       Increments the current read/write position by 1, returning the +//       character at the old position.+inline char& _FILE_I_preincr(FILE *__f)  { return *(char*)(++__f->__bufpos); }++//       Increments the current read/write position by 1, returning the +//       character at the old position.+inline char& _FILE_I_postincr(FILE *__f)  { return *(char*)(__f->__bufpos++); }++//       Decrements the current read/write position by 1, returning the +//       character at the old position.+inline char& _FILE_I_predecr(FILE *__f)  { return *(char*)(--__f->__bufpos); }++//       Decrements the current read/write position by 1, returning the +//       character at the old position.+inline char& _FILE_I_postdecr(FILE *__f)  { return *(char*)(__f->__bufpos--); }++//       Increments the current read/write position by __n.+inline void  _FILE_I_bump(FILE *__f, int __n) { __f->__bufpos += __n; }++//       Sets the beginning of the bufer to __begin, the current read/write+//       position to __next, and the buffer's past-the-end pointer to __end.+//       If any of those pointers is null, then all of them must be null.+inline void _FILE_I_set(FILE *__f, char* __begin, char* __next, char* __end)+{+	__f->__bufstart = (unsigned char*)__begin;+	__f->__bufpos  =  (unsigned char*)__next;+	__f->__bufend  =  (unsigned char*)__end;+	__f->__bufgetc_u = (unsigned char*)__begin;+	__f->__bufputc_u = (unsigned char*)__end;+}++# define _STLP_FILE_I_O_IDENTICAL++#else    // Support old stdio for a little while.++inline int   _FILE_fd(const FILE *__f) { return __f->filedes; }++//       Returns a pointer to the beginning of the buffer.+inline char* _FILE_I_begin(const FILE *__f) { return (char*) __f->bufstart; }++//       Returns the current read/write position within the buffer.+inline char* _FILE_I_next(const FILE *__f) { return (char*) __f->bufpos; }++//       Returns a pointer immediately past the end of the buffer.+inline char* _FILE_I_end(const FILE *__f) { return (char*)__f->bufend; }++//       Returns the number of characters remaining in the buffer, i.e.+//       _FILE_[IO]_end(__f) - _FILE_[IO]_next(__f).+inline ptrdiff_t _FILE_I_avail(const FILE *__f) +  { return __f->bufgetc - __f->bufpos; }++//       Increments the current read/write position by 1, returning the +//       character at the old position.+inline char& _FILE_I_preincr(FILE *__f)  { return *(char*)(++__f->bufpos); }++//       Increments the current read/write position by 1, returning the +//       character at the old position.+inline char& _FILE_I_postincr(FILE *__f)  { return *(char*)(__f->bufpos++); }++//       Decrements the current read/write position by 1, returning the +//       character at the old position.+inline char& _FILE_I_predecr(FILE *__f)  { return *(char*)(--__f->bufpos); }++//       Decrements the current read/write position by 1, returning the +//       character at the old position.+inline char& _FILE_I_postdecr(FILE *__f)  { return *(char*)(__f->bufpos--); }++//       Increments the current read/write position by __n.+inline void  _FILE_I_bump(FILE *__f, int __n) { __f->bufpos += __n; }++//       Sets the beginning of the bufer to __begin, the current read/write+//       position to __next, and the buffer's past-the-end pointer to __end.+//       If any of those pointers is null, then all of them must be null.+inline void _FILE_I_set(FILE *__f, char* __begin, char* __next, char* __end)+{+	__f->bufstart = (unsigned char*)__begin;+	__f->bufpos  =  (unsigned char*)__next;+	__f->bufend  =  (unsigned char*)__end;+	__f->bufgetc = (unsigned char*)__begin;+	__f->bufputc = (unsigned char*)__end;+}++# define _STLP_FILE_I_O_IDENTICAL++#endif+ #else  /* A C library that we don't have an implementation for. */  # error The C++ I/O library is not configured for this compilerdiff -urN STLport-4.5.3/stlport/stl/c_locale.h STLport-4.5.3-devel/stlport/stl/c_locale.h--- STLport-4.5.3/stlport/stl/c_locale.h	Fri Jan 18 15:07:00 2002+++ STLport-4.5.3-devel/stlport/stl/c_locale.h	Wed Jan  8 10:58:10 2003@@ -401,6 +401,21 @@ #  define _Locale_SPACE _S #  define _Locale_PRINT (_P | _U | _L | _N | _B) #  define _Locale_ALPHA (_U | _L)++# elif defined(_STLP_USE_UCLIBC) /* linux, using the gnu compiler */++#  define _Locale_CNTRL  _IScntrl+#  define _Locale_UPPER  _ISupper+#  define _Locale_LOWER  _ISlower+#  define _Locale_DIGIT  _ISdigit+#  define _Locale_XDIGIT _ISxdigit+#  define _Locale_PUNCT  _ISpunct+#  define _Locale_SPACE  _ISspace+#  define _Locale_PRINT  _ISprint+#  define _Locale_ALPHA  _ISalpha++#else+#  error Unknown Locale #endif  # endif /* _STLP_C_LOCALE_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -