Cygwin: drop i386 refs from header files where source isn't affected

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2022-05-16 17:51:14 +02:00
parent 866ae2c254
commit b3b9e231de
3 changed files with 2 additions and 10 deletions

View File

@ -63,15 +63,9 @@ public:
operator int () const { return i; } operator int () const { return i; }
int operator = (int ni) { return i = ni; } int operator = (int ni) { return i = ni; }
#ifndef __x86_64__ /* size_t == vm_offset_t == unsigned long. Ssize_t needs overloading */
/* On x86_64: size_t == vm_offset_t == unsigned long */
operator size_t () const { return sz; }
size_t operator = (size_t nsz) { return sz = nsz; }
#else
/* On i686: ssize_t == long == int */
operator ssize_t () const { return ssz; } operator ssize_t () const { return ssz; }
ssize_t operator = (ssize_t nssz) { return ssz = nssz; } ssize_t operator = (ssize_t nssz) { return ssz = nssz; }
#endif
operator vm_offset_t () const { return off; } operator vm_offset_t () const { return off; }
vm_offset_t operator = (vm_offset_t noff) { return off = noff; } vm_offset_t operator = (vm_offset_t noff) { return off = noff; }

View File

@ -20,7 +20,7 @@ typedef unsigned short __u16;
typedef __signed__ int __s32; typedef __signed__ int __s32;
typedef unsigned int __u32; typedef unsigned int __u32;
/* As on Linux. Works for both platforms, i686 and x86_64. */ /* As on Linux. */
typedef __signed__ long long __s64; typedef __signed__ long long __s64;
typedef unsigned long long __u64; typedef unsigned long long __u64;

View File

@ -23,11 +23,9 @@ typedef __int32_t __blksize_t;
typedef __uint32_t __dev_t; typedef __uint32_t __dev_t;
#define __machine_fsblkcnt_t_defined #define __machine_fsblkcnt_t_defined
/* Keep as is. 32 bit on i386, 64 bit on x86_64. */
typedef unsigned long __fsblkcnt_t; typedef unsigned long __fsblkcnt_t;
#define __machine_fsfilcnt_t_defined #define __machine_fsfilcnt_t_defined
/* Keep as is. 32 bit on i386, 64 bit on x86_64. */
typedef unsigned long __fsfilcnt_t; typedef unsigned long __fsfilcnt_t;
#define __machine_uid_t_defined #define __machine_uid_t_defined