forked from Lainports/freebsd-ports
As Intel uses it's own directory for ifc and icc, we don't conflict with ifc anymore. Because of ABI changes, you have to recompile C++ programs (don't forget stlport-icc). Note that this port is a _work in progress_: - Icc allows to use an already installed libstdc++ from gcc, this doesn't work yet on FreeBSD. Libstdc++ on 4.x is too old, so it's unlikely we can add support for it. The headers of libstdc++ shipping with FreeBSD 5.2-CURRENT use GCCisms not (yet) supported by icc, the hardcoded search path for them also doesn't fit for FreeBSD 5.2-CURRENT. - We've incorporated parts (cxa) of the FreeBSD >= 502101 libc on < 502101 systems. It's tested on 4.x, but not on FreeBSD < 502101. - Not all (new) options (including GCC compatibility) are thoroughly tested. When encountering problems please report to me first instead of directly contacting Intel. Ackknowledgements: - Bradley T Hughes <bhughes@trolltech.com> for PR 59552, it resulted in a modification of our libc (C++ DSO Object Destruction API) we incorporate in the port on < 502101 systems. - Marius Strobl <marius@alchemy.franken.de> for his help with the port (e.g. ld.c, cxa).
61 lines
1.5 KiB
Text
61 lines
1.5 KiB
Text
--- include/c++/cstdio.orig Sat Dec 13 19:27:02 2003
|
|
+++ include/c++/cstdio Sat Dec 13 19:28:46 2003
|
|
@@ -13,36 +13,6 @@
|
|
#include <stdio.h>
|
|
#endif /* _STD_USING */
|
|
|
|
- #if defined(__GLIBC__) /* compiler test */
|
|
-
|
|
- #define _HAS_POINTER_CLIB 1
|
|
- #define _RBEGIN _IO_read_base
|
|
- #define _RNEXT _IO_read_ptr
|
|
- #define _REND _IO_read_end
|
|
- #define _WBEGIN _IO_write_base
|
|
- #define _WNEXT _IO_write_ptr
|
|
- #define _WEND _IO_write_end
|
|
- #endif /* defined(__GLIBC__) */
|
|
-
|
|
- #if !defined(__GLIBC__) /* compiler test */
|
|
-
|
|
- #if defined(__MWERKS__)
|
|
- #define _IOBASE buffer
|
|
- #define _IOPTR buffer_ptr
|
|
- #define _IOCNT buffer_len
|
|
-
|
|
- #else /* elif defined(__sun) */
|
|
- #define _IOBASE _base
|
|
- #define _IOPTR _ptr
|
|
- #define _IOCNT _cnt
|
|
- #endif /* defined(__MWERKS__) */
|
|
-
|
|
- #endif /* !defined(__GLIBC__) etc. */
|
|
-
|
|
- #ifndef _HAS_POINTER_CLIB
|
|
- #define _HAS_CONVENTIONAL_CLIB 1
|
|
- #endif /* _HAS_POINTER_CLIB */
|
|
-
|
|
#ifdef _GLOBAL_USING
|
|
_STD_BEGIN
|
|
using _CSTD size_t; using _CSTD fpos_t; using _CSTD FILE;
|
|
@@ -70,21 +40,6 @@
|
|
_STD_END
|
|
#endif /* _GLOBAL_USING */
|
|
|
|
-#ifndef _Filet
|
|
- #define _Filet FILE
|
|
-#endif /* _Filet */
|
|
-
|
|
-#ifndef _FPOSOFF
|
|
-
|
|
- #if defined(__GLIBC__) /* compiler test */ \
|
|
- && !(__GLIBC__ < 2 || __GLIBC__ == 2 && __GLIBC_MINOR__ < 2)
|
|
- #define _FPOSOFF(fp) ((long)(fp).__pos)
|
|
-
|
|
- #else /* !defined(__GLIBC__) etc. */
|
|
- #define _FPOSOFF(fp) ((long)(fp))
|
|
- #endif /* !defined(__GLIBC__) etc. */
|
|
-
|
|
-#endif /* _FPOSOFF */
|
|
#endif /* _CSTDIO_ */
|
|
|
|
/*
|