This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
[PATCH] AIX bits
- To: libstdc++ at sources dot redhat dot com
- Subject: [PATCH] AIX bits
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Thu, 26 Oct 2000 13:19:55 -0400
* config/os/aix/bits/ctype_inline.h (is): Use __OBJ_DATA directly.
* config/os/aix/bits/ctype_noninline.h (do_tolower): Fix typo.
* config/os/aix/bits/os_defines.h: Add AIX defines.
Index: config/os/aix/bits/ctype_inline.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/config/os/aix/bits/ctype_inline.h,v
retrieving revision 1.1
diff -c -p -r1.1 ctype_inline.h
*** ctype_inline.h 2000/10/07 18:39:05 1.1
--- ctype_inline.h 2000/10/26 17:13:59
***************
*** 37,43 ****
bool
ctype<char>::
is(mask __m, char __c) const throw()
! { return _IS(__c, __m); }
const char*
ctype<char>::
--- 37,43 ----
bool
ctype<char>::
is(mask __m, char __c) const throw()
! { return __OBJ_DATA(__lc_ctype)->mask[__c] & __m; }
const char*
ctype<char>::
Index: config/os/aix/bits/ctype_noninline.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/config/os/aix/bits/ctype_noninline.h,v
retrieving revision 1.2
diff -c -p -r1.2 ctype_noninline.h
*** ctype_noninline.h 2000/10/26 14:56:04 1.2
--- ctype_noninline.h 2000/10/26 17:13:59
***************
*** 57,63 ****
char
ctype<char>::do_tolower(char __c) const
! { return _tolower(__a); }
const char*
ctype<char>::do_tolower(char* __low, const char* __high) const
--- 57,63 ----
char
ctype<char>::do_tolower(char __c) const
! { return _tolower(__c); }
const char*
ctype<char>::do_tolower(char* __low, const char* __high) const
Index: config/os/aix/bits/os_defines.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/config/os/aix/bits/os_defines.h,v
retrieving revision 1.3
diff -c -p -r1.3 os_defines.h
*** os_defines.h 2000/10/25 12:50:05 1.3
--- os_defines.h 2000/10/26 17:13:59
***************
*** 27,40 ****
// invalidate any other reasons why the executable file might be covered by
// the GNU General Public License.
-
#ifndef _GLIBCPP_OS_DEFINES
! # define _GLIBCPP_OS_DEFINES
!
/* System-specific #define, typedefs, corrections, etc, go here. This
file will come before all others. */
#endif
--- 27,56 ----
// invalidate any other reasons why the executable file might be covered by
// the GNU General Public License.
#ifndef _GLIBCPP_OS_DEFINES
! #define _GLIBCPP_OS_DEFINES
/* System-specific #define, typedefs, corrections, etc, go here. This
file will come before all others. */
+ #undef _XOPEN_SOURCE
+ #define _XOPEN_SOURCE 500
+ #undef _XOPEN_SOURCE_EXTENDED
+ #define _XOPEN_SOURCE_EXTENDED 1
+
+ /* off64_t */
+ #ifndef _LARGE_FILE_API
+ #define _LARGE_FILE_API
+ #endif
+
+ /* atomic types */
+ #ifndef _ALL_SOURCE
+ #define _ALL_SOURCE
+ #endif
+
+ #define __off_t off_t
+ #define __off64_t off64_t
+ #define __ssize_t ssize_t
#endif