acadia-newlib/newlib/libc/include/sys
Corinna Vinschen 55de3fdd0e Cygwin: define FILE as struct __sFILE64, not as __sFILE
Until Cygwin 3.3.6, we define __LARGE64_FILES unconditionally, so we
were using the type __sFILE64 even for 64 bit.  That was lazy and wrong.
so commit 2902b3a09e ("Cygwin: drop requirement to build newlib's
stdio64") tried to fix that.

Unfortunately this patch forgot to take the exposure of the typename
__sFILE64 in userspace into account.  This leads to trouble in C++ due
to name mangling.

Commit 0f376ae220 tried to fix this by just renaming __sFILE to
__sFILE64 by using a macro.  While __sFILE and __sFILE64 are the same
size, they are not exactly congruent.

To avoid backward compatibility problems, make sure to define FILE
as the  real __sFILE64, and make sure that __sFILE is not defined at
all on Cygwin.

Fixes: 0f376ae220 ("Cygwin: rename __sFILE to __sFILE64 for backward
compatibility")
Fixes: 2902b3a09e ("Cygwin: drop requirement to build newlib's stdio64")
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-12-08 17:16:20 +01:00
..
_default_fcntl.h change _COMPILING_NEWLIB to _LIBC 2021-11-15 19:32:23 -05:00
_intsup.h
_locale.h
_pthreadtypes.h
_sigset.h
_stdint.h
_timespec.h
_timeval.h
_types.h Reduce namespace pollution from <sys/_types.h> 2022-07-08 06:57:52 +02:00
_tz_structs.h libc/time: Move internal newlib tz-structs into own header 2020-10-15 16:59:51 +02:00
cdefs.h cdefs.h: Remove redundant #ifdefs 2022-07-11 11:52:46 +02:00
config.h Add --enable-newlib-reent-thread-local option 2022-07-13 06:55:46 +02:00
custom_file.h
dir.h
dirent.h
errno.h Add --enable-newlib-reent-thread-local option 2022-07-13 06:55:46 +02:00
fcntl.h
features.h change _COMPILING_NEWLIB to _LIBC 2021-11-15 19:32:23 -05:00
fenv.h
file.h
iconvnls.h
lock.h
param.h
queue.h
reent.h Cygwin: define FILE as struct __sFILE64, not as __sFILE 2022-12-08 17:16:20 +01:00
resource.h Fix missing extern C statement 2022-09-26 13:44:21 -04:00
sched.h
select.h Cygwin: redefine some macros for Linux compatibility 2022-07-07 08:22:40 -04:00
signal.h change _COMPILING_NEWLIB to _LIBC 2021-11-15 19:32:23 -05:00
stat.h Cygwin: simplify some function names 2022-05-29 17:45:52 -04:00
stdio.h
string.h
syslimits.h
time.h Revert "sys/types.h: Don't include sys/_stdint.h" 2022-05-04 15:08:44 +02:00
timeb.h
times.h change _COMPILING_NEWLIB to _LIBC 2021-11-15 19:32:23 -05:00
timespec.h
tree.h sys/tree.h: Red child with black sibling rotations 2021-10-07 17:58:36 +02:00
types.h Reduce namespace pollution from <sys/_types.h> 2022-07-08 06:57:52 +02:00
unistd.h Cygwin: simplify some function names 2022-05-29 17:45:52 -04:00
utime.h
wait.h change _COMPILING_NEWLIB to _LIBC 2021-11-15 19:32:23 -05:00