Skip to content

Commit 90184f1

Browse files
dj-wednesdayDJ Wednesday
andauthored
Add fake typedefs for GNU Extension 128-bit integers. (#577)
Applies for GNU Extensions available on 64-bit targets. Allows pycparser to scan: int128_t, uint128_t Co-authored-by: DJ Wednesday <[email protected]>
1 parent f04fdcd commit 90184f1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

utils/fake_libc_include/_fake_typedefs.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,12 @@ typedef int uintmax_t;
153153
/* C99 stdbool.h bool type. _Bool is built-in in C99 */
154154
typedef _Bool bool;
155155

156+
/* GNU Extension for 64-bit targets */
157+
#ifdef __SIZEOF_INT128__
158+
typedef int __int128_t;
159+
typedef int __uint128_t;
160+
#endif /* __SIZEOF_INT128__ */
161+
156162
/* Mir typedefs */
157163
typedef void* MirEGLNativeWindowType;
158164
typedef void* MirEGLNativeDisplayType;

0 commit comments

Comments
 (0)