V3 PATCH: Solaris configuration

Mark Mitchell mark@codesourcery.com
Sun Nov 12 16:25:00 GMT 2000


We need to define __EXTENSIONS__ to get the Solaris headers to DTRT
for V3 with respect to defining various functions involving `long
long'.

It is likely (nearly certain) that this introduces non-standard names
into the global namespace -- but that is a minor consideration, for
now.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

2000-11-12  Mark Mitchell  <mark@codesourcery.com>

	* config/os/solaris/solaris2.7/bits/os_defines.h: Define
	__EXTENSIONS__.

Index: libstdc++-v3/config/os/solaris/solaris2.7/bits/os_defines.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/config/os/solaris/solaris2.7/bits/os_defines.h,v
retrieving revision 1.4
diff -c -p -r1.4 os_defines.h
*** os_defines.h	2000/10/31 01:56:18	1.4
--- os_defines.h	2000/11/13 00:12:34
***************
*** 34,39 ****
--- 34,40 ----
  // Need these to get sane definitions, esp. of 64-bit types and typedefs.
  #define _XOPEN_SOURCE        500
  #define _LARGEFILE64_SOURCE  1
+ #define __EXTENSIONS__
  
  // These are typedefs which libio assumes are already in place (because
  // they really are, under Linux).


More information about the Libstdc++ mailing list