Skip to content

Commit

Permalink
define [U]LONG32 as int [#7]
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Aug 16, 2024
1 parent c510f54 commit 3f740cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions include/coff.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@
/* the following are needed when cross compiling hostbin exes */
#ifndef _DJ_DEFINED_NATIVE_TYPES
#define _DJ_DEFINED_NATIVE_TYPES
#ifdef _LP64 /* Note: win64 is LLP64 */
#ifndef _ILP64 /* Note: win64 is LLP64 */
# define LONG32 int
# define ULONG32 unsigned int
#else
# define LONG32 long
# define ULONG32 unsigned long
# error ILP64 not supported
#endif
/* make sure it is 32 bits */
typedef int _DJCHK_LONG32[(sizeof(LONG32) == 4)*3 - 1];
Expand Down
5 changes: 2 additions & 3 deletions include/sys/cdefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@
#endif
#endif

#ifdef _LP64 /* Note: win64 is LLP64 */
#ifndef _ILP64 /* Note: win64 is LLP64 */
# define LONG32 int
# define ULONG32 unsigned int
#else
# define LONG32 long
# define ULONG32 unsigned long
# error ILP64 not supported
#endif

#undef __P
Expand Down
5 changes: 2 additions & 3 deletions include/sys/dxe.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@
/* the following are needed when cross compiling hostbin exes */
#ifndef _DJ_DEFINED_NATIVE_TYPES
#define _DJ_DEFINED_NATIVE_TYPES
#ifdef _LP64 /* Note: win64 is LLP64 */
#ifndef _ILP64 /* Note: win64 is LLP64 */
# define LONG32 int
# define ULONG32 unsigned int
#else
# define LONG32 long
# define ULONG32 unsigned long
# error ILP64 not supported
#endif
/* make sure it is 32 bits */
typedef int _DJCHK_LONG32[(sizeof(LONG32) == 4)*3 - 1];
Expand Down

0 comments on commit 3f740cc

Please sign in to comment.