freebsd-ports/lang/icc/files/patch-include__c++__cstdio
Thomas Zander e07375286c - Assign maintainership to Carlos Jacobo Puga Medina <cpm@fbsd.es>
- Add RESTRICTED, LICENSE
- Clean up Makefile
  - Retire post-install
  - Use pkg-message
- Rename patches according to the naming conventions

PR:		193446
Submitted by:	cpm@fbsd.es
Reviewed by:	marino, riggs
2014-09-14 17:21:26 +00:00

67 lines
1.6 KiB
Text

--- 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_ */
/*