summaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-21 21:58:28 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-21 21:58:28 +0000
commit7667a9788c346cccfcd8f043b4651c5a1eccac16 (patch)
treee59d3d830bfb48f78299daef841f4a1f1df097ef /libstdc++-v3
parentc81586f134f273e7dec87ec76bea89ad98a30928 (diff)
downloadgcc-7667a9788c346cccfcd8f043b4651c5a1eccac16.tar.gz
2000-11-21 Branko Cibej <brankoe@xbc.nu>
* config/os/solaris/solaris2.6/bits/os_defines.h: Define _XOPEN_SOURCE, _LARGEFILE64_SOURCE, __EXTENSIONS__, __off_t, __off64_t and __ssize_t. * config/os/solaris/solaris2.5/bits/os_defines.h: For now, use the same configuration as above. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37628 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog12
-rw-r--r--libstdc++-v3/config/os/solaris/solaris2.5/bits/os_defines.h15
-rw-r--r--libstdc++-v3/config/os/solaris/solaris2.6/bits/os_defines.h13
3 files changed, 37 insertions, 3 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index dd0b466708c..00679719871 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,5 +1,17 @@
+2000-11-21 Branko Cibej <brankoe@xbc.nu>
+
+ * config/os/solaris/solaris2.6/bits/os_defines.h: Define
+ _XOPEN_SOURCE, _LARGEFILE64_SOURCE, __EXTENSIONS__, __off_t,
+ __off64_t and __ssize_t.
+ * config/os/solaris/solaris2.5/bits/os_defines.h: For now, use the
+ same configuration as above.
+
2000-11-21 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
+ * libsupc++/new.h: Add using declarations for bad_alloc,
+ nothrow_t, and nothrow.
+ * include/backward/new.h: Remove duplicate file, as libsupc++ has it.
+
* acinclude.m4 (AC_LC_MESSAGES): Check for locale.h.
* aclocal.m4: Regenerate.
* configure: Renerate.
diff --git a/libstdc++-v3/config/os/solaris/solaris2.5/bits/os_defines.h b/libstdc++-v3/config/os/solaris/solaris2.5/bits/os_defines.h
index 61bcd200a83..c947be7c6c8 100644
--- a/libstdc++-v3/config/os/solaris/solaris2.5/bits/os_defines.h
+++ b/libstdc++-v3/config/os/solaris/solaris2.5/bits/os_defines.h
@@ -1,4 +1,4 @@
-// Specific definitions for Solaris 2.5 -*- C++ -*-
+// Specific definitions for Solaris 2.6 -*- C++ -*-
// Copyright (C) 2000 Free Software Foundation, Inc.
//
@@ -31,10 +31,21 @@
#ifndef _GLIBCPP_OS_DEFINES
# define _GLIBCPP_OS_DEFINES
+// Need these to get sane definitions, esp. of 64-bit types and typedefs.
+#define _XOPEN_SOURCE 500
+#define _LARGEFILE64_SOURCE 1
+#define __EXTENSIONS__
/* System-specific #define, typedefs, corrections, etc, go here. This
file will come before all others. */
-
+// These are typedefs which libio assumes are already in place (because
+// they really are, under Linux).
+#define __off_t off_t
+#define __off64_t off64_t
+#define __ssize_t ssize_t
+
+// Without this all the libio vtbls are offset wrongly.
+#define _G_USING_THUNKS 0
#endif
diff --git a/libstdc++-v3/config/os/solaris/solaris2.6/bits/os_defines.h b/libstdc++-v3/config/os/solaris/solaris2.6/bits/os_defines.h
index 9913f738f45..c947be7c6c8 100644
--- a/libstdc++-v3/config/os/solaris/solaris2.6/bits/os_defines.h
+++ b/libstdc++-v3/config/os/solaris/solaris2.6/bits/os_defines.h
@@ -31,10 +31,21 @@
#ifndef _GLIBCPP_OS_DEFINES
# define _GLIBCPP_OS_DEFINES
+// Need these to get sane definitions, esp. of 64-bit types and typedefs.
+#define _XOPEN_SOURCE 500
+#define _LARGEFILE64_SOURCE 1
+#define __EXTENSIONS__
/* System-specific #define, typedefs, corrections, etc, go here. This
file will come before all others. */
-
+// These are typedefs which libio assumes are already in place (because
+// they really are, under Linux).
+#define __off_t off_t
+#define __off64_t off64_t
+#define __ssize_t ssize_t
+
+// Without this all the libio vtbls are offset wrongly.
+#define _G_USING_THUNKS 0
#endif