Skip to content

Commit 3d69f85

Browse files
sbc100br0nk
authored andcommitted
Use __LONG_MAX__ alltypes.h. NFC (emscripten-core#20756)
Followup to emscripten-core#20752. I must have been running into some other issue.
1 parent 29d16ed commit 3d69f85

File tree

1 file changed

+1
-7
lines changed
  • system/lib/libc/musl/arch/emscripten/bits

1 file changed

+1
-7
lines changed

system/lib/libc/musl/arch/emscripten/bits/alltypes.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@
44

55
#define __BYTE_ORDER __LITTLE_ENDIAN
66

7-
// Can't use __LONG_MAX__ here since musl's libs does pre-processor comparison
8-
// with 0x7fffffffL directly.
9-
#if __LP64__
10-
#define LONG_MAX 0x7fffffffffffffffL
11-
#else
12-
#define LONG_MAX 0x7fffffffL
13-
#endif
7+
#define LONG_MAX __LONG_MAX__
148

159
#define _Addr __PTRDIFF_TYPE__
1610
#define _Int64 __INT64_TYPE__

0 commit comments

Comments
 (0)