Commit 697c2a39 by Phil Edwards Committed by Phil Edwards

acconfig.h: _GLIBCPP_USING_THREADS and some workaround types added.

2000-08-23  Phil Edwards  <pme@sourceware.cygnus.com>

	* acconfig.h:  _GLIBCPP_USING_THREADS and some workaround types added.
	* acinclude.m4:  New macro, GLIBCPP_ENABLE_WCHAR.  Set the threads
	  definition as well, and some minor spelling/spacing fixes.  If
	  building libio, check for certain typedefs.
	* libio/_G_config.h:  Wrap _IO_MTSAFE_IO in _GLIBCPP_USING_THREADS.
	  Conditionally define _LARGEFILE64_SOURCE, otherwise the 64-bit types
	  will never be there.
	* libio/libio.h:  In the null case, _IO_lock_t can't just be void.
	* src/string-inst.cc:  Use _GLIBCPP_USE_WCHAR_T.

	* configure.in:  Update the cache a bit more often.

	* mkcheck.in:  For check-install, also need to -I the testsuite dir.

From-SVN: r35901
parent 55efb413
2000-08-23 Phil Edwards <pme@sourceware.cygnus.com>
* acconfig.h: _GLIBCPP_USING_THREADS and some workaround types added.
* acinclude.m4: New macro, GLIBCPP_ENABLE_WCHAR. Set the threads
definition as well, and some minor spelling/spacing fixes. If
building libio, check for certain typedefs.
* libio/_G_config.h: Wrap _IO_MTSAFE_IO in _GLIBCPP_USING_THREADS.
Conditionally define _LARGEFILE64_SOURCE, otherwise the 64-bit types
will never be there.
* libio/libio.h: In the null case, _IO_lock_t can't just be void.
* src/string-inst.cc: Use _GLIBCPP_USE_WCHAR_T.
* configure.in: Update the cache a bit more often.
* mkcheck.in: For check-install, also need to -I the testsuite dir.
2000-08-22 Benjamin Kosnik <bkoz@purist.soma.redhat.com> 2000-08-22 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
* src/locale-inst.cc: Add codecvt<unicode_t, wchar_t, * src/locale-inst.cc: Add codecvt<unicode_t, wchar_t,
......
...@@ -69,6 +69,24 @@ ...@@ -69,6 +69,24 @@
// Define if modf is present in <math.h> // Define if modf is present in <math.h>
#undef HAVE_MODF #undef HAVE_MODF
// Define if multiple threads are to be taken into account.
#undef _GLIBCPP_USING_THREADS
// Define to some workaround if not directly available.
#undef off64_t
// Define to some workaround if not directly available.
#undef __off_t
// Define to some workaround if not directly available.
#undef __off64_t
// Define to some workaround if not directly available.
#undef __ssize_t
// Define to regular stat if not directly supported.
#undef stat64
// @BOTTOM@ // @BOTTOM@
// //
// Systems that have certain non-standard functions prefixed with an // Systems that have certain non-standard functions prefixed with an
......
...@@ -131,9 +131,11 @@ LIB_AC_PROG_CXX ...@@ -131,9 +131,11 @@ LIB_AC_PROG_CXX
# fails, because we are probably configuring with a cross compiler # fails, because we are probably configuring with a cross compiler
# which cant create executables. So we include AC_EXEEXT to keep # which cant create executables. So we include AC_EXEEXT to keep
# automake happy, but we dont execute it, since we dont care about # automake happy, but we dont execute it, since we dont care about
# the result. # the result. We must, however, execute something else to prevent sh
# from complaining about an empty body.
if false; then if false; then
AC_EXEEXT AC_EXEEXT
:
fi fi
# configure.host sets the following important variables # configure.host sets the following important variables
...@@ -893,93 +895,102 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [ ...@@ -893,93 +895,102 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE, [
dnl dnl
dnl Check to see if this target can enable the wchar_t parts of libstdc++. dnl Check to see if this target can enable the wchar_t parts of libstdc++.
dnl dnl
dnl Define _GLIBCPP_USE_WCHAR_T if all the bits are found dnl Define _GLIBCPP_USE_WCHAR_T if all the bits are found.
dnl Define _GLIBCPP_NEED_MBSTATE_T if mbstate_t is not in wchar.h dnl Define _GLIBCPP_NEED_MBSTATE_T if mbstate_t is not in wchar.h.
dnl
dnl All of the above depends on --enable-wchar (the default).
dnl dnl
dnl GLIBCPP_CHECK_WCHAR_T_SUPPORT dnl GLIBCPP_CHECK_WCHAR_T_SUPPORT
AC_DEFUN(GLIBCPP_CHECK_WCHAR_T_SUPPORT, [ AC_DEFUN(GLIBCPP_CHECK_WCHAR_T_SUPPORT, [
dnl Sanity check for existence of ISO C9X headers for extended encoding. AC_MSG_CHECKING([if wide character support is requested])
AC_CHECK_HEADER(wchar.h, ac_has_wchar_h=yes, ac_has_wchar_h=no) GLIBCPP_ENABLE_WCHAR([yes])
AC_CHECK_HEADER(wctype.h, ac_has_wctype_h=yes, ac_has_wctype_h=no) AC_MSG_RESULT($enable_wchar)
if test x"$enable_wchar" = xyes; then
dnl Only continue checking if the ISO C9X headers exist.
if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes; then dnl Sanity check for existence of ISO C9X headers for extended encoding.
AC_CHECK_HEADER(wchar.h, ac_has_wchar_h=yes, ac_has_wchar_h=no)
dnl Test wchar.h for mbstate_t, which is needed for char_traits and others. AC_CHECK_HEADER(wctype.h, ac_has_wctype_h=yes, ac_has_wctype_h=no)
AC_MSG_CHECKING([for mbstate_t])
AC_TRY_COMPILE([#include <wchar.h>], dnl Only continue checking if the ISO C9X headers exist.
[mbstate_t teststate;], if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes; then
use_native_mbstatet=yes, use_native_mbstatet=no)
AC_MSG_RESULT($use_native_mbstatet) dnl Test wchar.h for mbstate_t, which is needed for char_traits and others.
if test x"$use_native_mbstatet" = xno; then AC_MSG_CHECKING([for mbstate_t])
AC_DEFINE(_GLIBCPP_NEED_MBSTATE_T) AC_TRY_COMPILE([#include <wchar.h>],
fi [mbstate_t teststate;],
use_native_mbstatet=yes, use_native_mbstatet=no)
dnl Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before AC_MSG_RESULT($use_native_mbstatet)
dnl numeric_limits can instantiate type_traits<wchar_t> if test x"$use_native_mbstatet" = xno; then
AC_MSG_CHECKING([for WCHAR_MIN and WCHAR_MAX]) AC_DEFINE(_GLIBCPP_NEED_MBSTATE_T)
AC_TRY_COMPILE([#include <wchar.h>], fi
[int i = WCHAR_MIN; int j = WCHAR_MAX;],
has_wchar_minmax=yes, has_wchar_minmax=no) dnl Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
AC_MSG_RESULT($has_wchar_minmax) dnl numeric_limits can instantiate type_traits<wchar_t>
AC_MSG_CHECKING([for WCHAR_MIN and WCHAR_MAX])
dnl Test wchar.h for WEOF, which is what we use to determine whether AC_TRY_COMPILE([#include <wchar.h>],
dnl to specialize for char_traits<wchar_t> or not. [int i = WCHAR_MIN; int j = WCHAR_MAX;],
AC_MSG_CHECKING([for WEOF]) has_wchar_minmax=yes, has_wchar_minmax=no)
AC_TRY_COMPILE([ AC_MSG_RESULT($has_wchar_minmax)
#include <wchar.h>
#include <stddef.h>], dnl Test wchar.h for WEOF, which is what we use to determine whether
[wint_t i = WEOF;], dnl to specialize for char_traits<wchar_t> or not.
has_weof=yes, has_weof=no) AC_MSG_CHECKING([for WEOF])
AC_MSG_RESULT($has_weof) AC_TRY_COMPILE([
#include <wchar.h>
dnl Tests for wide character functions used in char_traits<wchar_t>. #include <stddef.h>],
AC_CHECK_FUNCS(wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \ [wint_t i = WEOF;],
wcsrtombs mbsrtowcs, ac_wfuncs=yes, ac_wfuncs=no) has_weof=yes, has_weof=no)
AC_MSG_RESULT($has_weof)
AC_MSG_CHECKING([for ISO C9X wchar_t support])
if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \ dnl Tests for wide character functions used in char_traits<wchar_t>.
&& test x"$ac_wfuncs" = xyes; then AC_CHECK_FUNCS(wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \
ac_isoC9X_wchar_t=yes wcsrtombs mbsrtowcs, ac_wfuncs=yes, ac_wfuncs=no)
else
ac_isoC9X_wchar_t=no AC_MSG_CHECKING([for ISO C9X wchar_t support])
fi if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
AC_MSG_RESULT($ac_isoC9X_wchar_t) && test x"$ac_wfuncs" = xyes; then
ac_isoC9X_wchar_t=yes
dnl Use iconv for wchar_t to char conversions. As such, check for else
dnl X/Open Portability Guide, version 2 features (XPG2). ac_isoC9X_wchar_t=no
AC_CHECK_HEADER(iconv.h, ac_has_iconv_h=yes, ac_has_iconv_h=no) fi
AC_CHECK_HEADER(langinfo.h, ac_has_langinfo_h=yes, ac_has_langinfo_h=no) AC_MSG_RESULT($ac_isoC9X_wchar_t)
AC_CHECK_FUNCS(iconv_open iconv_close iconv nl_langinfo, \
ac_XPG2funcs=yes, ac_XPG2funcs=no) dnl Use iconv for wchar_t to char conversions. As such, check for
dnl X/Open Portability Guide, version 2 features (XPG2).
AC_MSG_CHECKING([for XPG2 wchar_t support]) AC_CHECK_HEADER(iconv.h, ac_has_iconv_h=yes, ac_has_iconv_h=no)
if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \ AC_CHECK_HEADER(langinfo.h, ac_has_langinfo_h=yes, ac_has_langinfo_h=no)
&& test x"$ac_XPG2funcs" = xyes; then AC_CHECK_FUNCS(iconv_open iconv_close iconv nl_langinfo, \
ac_XPG2_wchar_t=yes ac_XPG2funcs=yes, ac_XPG2funcs=no)
else
ac_XPG2_wchar_t=no AC_MSG_CHECKING([for XPG2 wchar_t support])
fi if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \
AC_MSG_RESULT($ac_XPG2_wchar_t) && test x"$ac_XPG2funcs" = xyes; then
ac_XPG2_wchar_t=yes
dnl At the moment, only enable wchar_t specializations if all the else
dnl above support is present. ac_XPG2_wchar_t=no
AC_MSG_CHECKING([for enabled wchar_t specializations]) fi
if test x"$ac_isoC9X_wchar_t" = xyes \ AC_MSG_RESULT($ac_XPG2_wchar_t)
&& test x"$ac_XPG2_wchar_t" = xyes; then
libinst_wstring_la="libinst-wstring.la" dnl At the moment, only enable wchar_t specializations if all the
AC_DEFINE(_GLIBCPP_USE_WCHAR_T) dnl above support is present.
AC_MSG_RESULT("yes") AC_MSG_CHECKING([for enabled wchar_t specializations])
else if test x"$ac_isoC9X_wchar_t" = xyes \
libinst_wstring_la="" && test x"$ac_XPG2_wchar_t" = xyes; then
AC_MSG_RESULT("no") libinst_wstring_la="libinst-wstring.la"
fi AC_DEFINE(_GLIBCPP_USE_WCHAR_T)
AC_SUBST(libinst_wstring_la) AC_MSG_RESULT("yes")
else
libinst_wstring_la=""
AC_MSG_RESULT("no")
fi
AC_SUBST(libinst_wstring_la)
else
AC_MSG_WARN([<wchar.h> not found])
AC_DEFINE(_GLIBCPP_NEED_MBSTATE_T)
fi
else
AC_MSG_WARN([<wchar.h> not found])
AC_DEFINE(_GLIBCPP_NEED_MBSTATE_T)
fi fi
]) ])
...@@ -1192,6 +1203,8 @@ dnl Check for which I/O library to use: libio, or something specific. ...@@ -1192,6 +1203,8 @@ dnl Check for which I/O library to use: libio, or something specific.
dnl dnl
dnl GLIBCPP_ENABLE_CSTDIO dnl GLIBCPP_ENABLE_CSTDIO
dnl --enable-cstdio=libio sets config/c_io_libio.h and friends dnl --enable-cstdio=libio sets config/c_io_libio.h and friends
dnl --enable-cstdio=wince sets config/c_io_wince.h and friends, but those
dnl need to be written by somebody.
dnl dnl
dnl default is libio dnl default is libio
dnl dnl
...@@ -1203,11 +1216,12 @@ AC_DEFUN(GLIBCPP_ENABLE_CSTDIO, [ ...@@ -1203,11 +1216,12 @@ AC_DEFUN(GLIBCPP_ENABLE_CSTDIO, [
if test x$enable_cstdio = xno; then if test x$enable_cstdio = xno; then
enable_cstdio=libio enable_cstdio=libio
fi, fi,
enable_cstdio=libio) enable_cstdio=libio
)
enable_cstdio_flag=$enable_cstdio enable_cstdio_flag=$enable_cstdio
dnl Check if a valid thread package dnl Check if a valid I/O package
case x${enable_cstdio_flag} in case x${enable_cstdio_flag} in
xlibio | x | xno | xnone | xyes) xlibio | x | xno | xnone | xyes)
# default # default
...@@ -1224,31 +1238,31 @@ AC_DEFUN(GLIBCPP_ENABLE_CSTDIO, [ ...@@ -1224,31 +1238,31 @@ AC_DEFUN(GLIBCPP_ENABLE_CSTDIO, [
if test x$has_libio = x"yes"; then if test x$has_libio = x"yes"; then
case "$target" in case "$target" in
*-*-linux*) *-*-linux*)
AC_MSG_CHECKING([for glibc version >= 2.2]) AC_MSG_CHECKING([for glibc version >= 2.2])
AC_EGREP_CPP([ok], [ AC_EGREP_CPP([ok], [
#include <features.h> #include <features.h>
#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
ok ok
#endif #endif
], glibc_satisfactory=yes, glibc_satisfactory=no) ], glibc_satisfactory=yes, glibc_satisfactory=no)
AC_MSG_RESULT($glibc_satisfactory) AC_MSG_RESULT($glibc_satisfactory)
;; ;;
esac esac
if test x$glibc_satisfactory = x"yes"; then if test x$glibc_satisfactory = x"yes"; then
need_libio=no need_libio=no
need_xtra_libio=no need_xtra_libio=no
need_wlibio=no need_wlibio=no
else else
need_libio=yes need_libio=yes
need_xtra_libio=yes need_xtra_libio=yes
# bkoz XXX need to add checks to enable this # bkoz XXX need to add checks to enable this
need_wlibio=yes need_wlibio=yes
fi fi
# Using libio, but <libio.h> doesn't exist on the target system. . . # Using libio, but <libio.h> doesn't exist on the target system. . .
else else
need_libio=yes need_libio=yes
need_xtra_libio=no need_xtra_libio=no
# bkoz XXX need to add checks to enable this # bkoz XXX need to add checks to enable this
need_wlibio=no need_wlibio=no
...@@ -1274,7 +1288,26 @@ AC_DEFUN(GLIBCPP_ENABLE_CSTDIO, [ ...@@ -1274,7 +1288,26 @@ AC_DEFUN(GLIBCPP_ENABLE_CSTDIO, [
CCODECVT_C=config/c_io_libio_codecvt.c CCODECVT_C=config/c_io_libio_codecvt.c
AC_LINK_FILES($CCODECVT_C, libio/c_codecvt.c) AC_LINK_FILES($CCODECVT_C, libio/c_codecvt.c)
# 2000-08-04 bkoz hack # 2000-08-04 bkoz hack
# 2000-08-22 pme kludge -- if building libio, then probably need these
# typedefs which are used in _G_config.h
if test $need_libio = yes; then
AC_CHECK_TYPE(__off_t,off_t)
# off64_t should already be there, but just in case...
AC_CHECK_TYPE(off64_t,off_t)
AC_CHECK_TYPE(__off64_t,off64_t)
AC_CHECK_TYPE(__ssize_t,ssize_t)
AC_TRY_COMPILE([#include <sys/types.h>
#include <sys/stat.h>],
[struct stat64 s;],
, dnl Nothing need be done if it's present
[dnl Not entirely comfortable with this
AC_DEFINE(stat64,stat)
]
)
fi
# 2000-08-22 pme kludge
AM_CONDITIONAL(GLIBCPP_NEED_LIBIO, test "$need_libio" = yes) AM_CONDITIONAL(GLIBCPP_NEED_LIBIO, test "$need_libio" = yes)
AM_CONDITIONAL(GLIBCPP_NEED_XTRA_LIBIO, test "$need_xtra_libio" = yes) AM_CONDITIONAL(GLIBCPP_NEED_XTRA_LIBIO, test "$need_xtra_libio" = yes)
AM_CONDITIONAL(GLIBCPP_NEED_WLIBIO, test "$need_wlibio" = yes) AM_CONDITIONAL(GLIBCPP_NEED_WLIBIO, test "$need_wlibio" = yes)
...@@ -1371,6 +1404,9 @@ AC_DEFUN(GLIBCPP_ENABLE_THREADS, [ ...@@ -1371,6 +1404,9 @@ AC_DEFUN(GLIBCPP_ENABLE_THREADS, [
AC_SUBST(THREADOBJS) AC_SUBST(THREADOBJS)
AC_SUBST(THREADSPEC) AC_SUBST(THREADSPEC)
AC_LINK_FILES(config/$THREADH, bits/c++threads.h) AC_LINK_FILES(config/$THREADH, bits/c++threads.h)
if test "$THREADS" != none; then
AC_DEFINE(_GLIBCPP_USING_THREADS)
fi
]) ])
...@@ -1582,6 +1618,7 @@ dnl string, '#' otherwise ...@@ -1582,6 +1618,7 @@ dnl string, '#' otherwise
AC_SUBST(ifGNUmake) AC_SUBST(ifGNUmake)
]) ])
sinclude(../libtool.m4) sinclude(../libtool.m4)
dnl The lines below arrange for aclocal not to bring an installed dnl The lines below arrange for aclocal not to bring an installed
dnl libtool.m4 into aclocal.m4, while still arranging for automake to dnl libtool.m4 into aclocal.m4, while still arranging for automake to
...@@ -1590,4 +1627,32 @@ ifelse(,,,[AC_SUBST(LIBTOOL) ...@@ -1590,4 +1627,32 @@ ifelse(,,,[AC_SUBST(LIBTOOL)
AC_DEFUN([AM_PROG_LIBTOOL]) AC_DEFUN([AM_PROG_LIBTOOL])
AC_DEFUN([AC_LIBTOOL_DLOPEN]) AC_DEFUN([AC_LIBTOOL_DLOPEN])
AC_DEFUN([AC_PROG_LD]) AC_DEFUN([AC_PROG_LD])
]) ])
\ No newline at end of file
dnl
dnl Check whether the user wants wide character support.
dnl
dnl GLIBCPP_ENABLE_WCHAR
dnl --enable-wchar [does stuff].
dnl --disable-wchar [does not do stuff].
dnl + Usage: GLIBCPP_ENABLE_WCHAR[(DEFAULT)]
dnl Where DEFAULT is either `yes' or `no'. If ommitted, it
dnl defaults to `no'.
AC_DEFUN(GLIBCPP_ENABLE_WCHAR, [dnl
define([GLIBCPP_ENABLE_WCHAR_DEFAULT], ifelse($1, yes, yes, no))dnl
AC_ARG_ENABLE(wchar,
changequote(<<, >>)dnl
<< --enable-wchar turns on wide character support [default=>>GLIBCPP_ENABLE_WCHAR_DEFAULT],
changequote([, ])dnl
[case "$enableval" in
yes) enable_wchar=yes ;;
no) enable_wchar=no ;;
*) AC_MSG_ERROR([Unknown argument to enable/disable wchar]) ;;
esac],
enable_wchar=GLIBCPP_ENABLE_WCHAR_DEFAULT)dnl
dnl We don't set things in the external files; other configure tests will
dnl use $enable_wchar ("yes"/"no") for their own work.
])
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
/* Define if you have a working `mmap' system call. */ /* Define if you have a working `mmap' system call. */
#undef HAVE_MMAP #undef HAVE_MMAP
/* Define if you have the ANSI C header files. */
#undef STDC_HEADERS
// Include support for 'long long' and 'unsigned long long'. // Include support for 'long long' and 'unsigned long long'.
#undef _GLIBCPP_USE_LONG_LONG #undef _GLIBCPP_USE_LONG_LONG
...@@ -72,6 +75,24 @@ ...@@ -72,6 +75,24 @@
// Define if modf is present in <math.h> // Define if modf is present in <math.h>
#undef HAVE_MODF #undef HAVE_MODF
// Define if multiple threads are to be taken into account.
#undef _GLIBCPP_USING_THREADS
// Define to some workaround if not directly available.
#undef off64_t
// Define to some workaround if not directly available.
#undef __off_t
// Define to some workaround if not directly available.
#undef __off64_t
// Define to some workaround if not directly available.
#undef __ssize_t
// Define to regular stat if not directly supported.
#undef stat64
/* Define if you have the _acosf function. */ /* Define if you have the _acosf function. */
#undef HAVE__ACOSF #undef HAVE__ACOSF
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -28,6 +28,8 @@ AM_CONFIG_HEADER(config.h) ...@@ -28,6 +28,8 @@ AM_CONFIG_HEADER(config.h)
GLIBCPP_CHECK_COMPILER_VERSION GLIBCPP_CHECK_COMPILER_VERSION
GLIBCPP_CHECK_CPU GLIBCPP_CHECK_CPU
AC_CACHE_SAVE
# Enable all the crazy c++ stuff. # Enable all the crazy c++ stuff.
GLIBCPP_ENABLE_DEBUG GLIBCPP_ENABLE_DEBUG
GLIBCPP_ENABLE_CSTDIO GLIBCPP_ENABLE_CSTDIO
...@@ -116,6 +118,7 @@ else ...@@ -116,6 +118,7 @@ else
GLIBCPP_CHECK_MATH_SUPPORT GLIBCPP_CHECK_MATH_SUPPORT
GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT
GLIBCPP_CHECK_COMPLEX_MATH_COMPILER_SUPPORT GLIBCPP_CHECK_COMPLEX_MATH_COMPILER_SUPPORT
AC_CACHE_SAVE
GLIBCPP_CHECK_WCHAR_T_SUPPORT GLIBCPP_CHECK_WCHAR_T_SUPPORT
GLIBCPP_CHECK_CTYPE GLIBCPP_CHECK_CTYPE
......
...@@ -6,11 +6,16 @@ ...@@ -6,11 +6,16 @@
#ifndef _LIBC #ifndef _LIBC
# include <bits/c++config.h> # include <bits/c++config.h>
# define _IO_MTSAFE_IO # ifdef _GLIBCPP_USING_THREADS
# define _IO_MTSAFE_IO
# endif
#endif #endif
/* Define types for libio in terms of the standard internal type names. */ /* Define types for libio in terms of the standard internal type names. */
#ifndef _LARGEFILE64_SOURCE
# define _LARGEFILE64_SOURCE
#endif
#include <sys/types.h> #include <sys/types.h>
#define __need_size_t #define __need_size_t
#define __need_wchar_t #define __need_wchar_t
......
...@@ -164,7 +164,7 @@ struct _IO_jump_t; struct _IO_FILE; ...@@ -164,7 +164,7 @@ struct _IO_jump_t; struct _IO_FILE;
/*# include <comthread.h>*/ /*# include <comthread.h>*/
# endif # endif
#else #else
typedef void _IO_lock_t; typedef void* _IO_lock_t;
#endif #endif
......
...@@ -57,7 +57,7 @@ fi ...@@ -57,7 +57,7 @@ fi
if [ $WHICH != "1" ]; then if [ $WHICH != "1" ]; then
INC_PATH="@CSHADOWFLAGS@ -I$BUILD_DIR -I$BUILD_DIR/libio -I$SRC_DIR/@ctype_include_dir@ -I$SRC_DIR/@cpu_include_dir@ -I$SRC_DIR/std -I$SRC_DIR -I$SRC_DIR/libio -I$SRC_DIR/testsuite" INC_PATH="@CSHADOWFLAGS@ -I$BUILD_DIR -I$BUILD_DIR/libio -I$SRC_DIR/@ctype_include_dir@ -I$SRC_DIR/@cpu_include_dir@ -I$SRC_DIR/std -I$SRC_DIR -I$SRC_DIR/libio -I$SRC_DIR/testsuite"
elif [ $WHICH -eq 1 ]; then elif [ $WHICH -eq 1 ]; then
INC_PATH="" INC_PATH="-I$SRC_DIR/testsuite"
fi fi
if [ $WHICH -eq 2 ]; then if [ $WHICH -eq 2 ]; then
......
...@@ -209,7 +209,7 @@ namespace std ...@@ -209,7 +209,7 @@ namespace std
const char* __ret = strchr(__beg, __c); const char* __ret = strchr(__beg, __c);
return (__ret ? __ret : __end); return (__ret ? __ret : __end);
} }
#else #elif defined(_GLIBCPP_USE_WCHAR_T)
template<> template<>
const wchar_t* const wchar_t*
wstring::_S_find(const wchar_t* __beg, const wchar_t* __end, wchar_t __c) wstring::_S_find(const wchar_t* __beg, const wchar_t* __end, wchar_t __c)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment