freebsd-ports/lang/icc/files/patch-include::c++::cstdio
Marius Strobl 9bb80ef3fe o Preliminary update to 8.1.022:
- For changes since the 8.0 series see the installed C++ReleaseNotes.htm
    but note that information given there doesn't necessarily apply to ICC
    on FreeBSD, e.g. -cxxlib-gcc isn't the default on FreeBSD yet and this
    port also doesn't install the Eclipse and CDT IDEs.
  - ICC now unfortunately requires emulators/linux_base-8.
  - Works fine for compiling C source.
  - A 6.0-current GENERIC kernel compiles and boots.
  - The devel/stlport-icc port currently can't link the exception handling
    testsuite with this ICC version (due to relying on a missbehaviour of
    the old ICC versions) and has to be changed in a way that doesn't break
    lang/icc7.
  - Support for using the GCC-compatibility of ICC on FreeBSD and using
    the GNU libstdc++ as the STL with ICC is in the works.

o Like with the system GCC, default to libpthread for the threads library
  on FreeBSD >= 502102.

Approved by:		netchild
In joint forces with:	netchild
2004-11-02 23:27:26 +00:00

68 lines
1.6 KiB
Plaintext

--- include/c++/cstdio.orig Wed Mar 17 14:14:58 2004
+++ include/c++/cstdio Wed Mar 17 14:17:22 2004
@@ -13,40 +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
-/*
- I do not know, why this is defined here, but this breaks down library
- compilation. Commented out as QNX does
- */
-// #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;
@@ -74,23 +40,6 @@
_STD_END
#endif /* _GLOBAL_USING */
-#ifndef __QNX__
-#ifndef _Filet
- #define _Filet FILE
-#endif /* _Filet */
-#endif /* __QNX__ */
-
-#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_ */
/*