Skip to content

Commit

Permalink
Fix 'unknown type uintptr_t' gcc error on msys64
Browse files Browse the repository at this point in the history
(fix of commit f68db21)

Issue #627 (bdwgc).

* include/gc/gc.h [!_UINTPTR_T && !_UINTPTR_T_DEFINED] (GC_uintptr_t):
Define as GC_word regardless of UINTPTR_MAX presence.
  • Loading branch information
ivmai committed Jun 13, 2024
1 parent 9885233 commit 03560ac
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions include/gc/gc.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,10 @@ typedef GC_SIGNEDWORD GC_signed_word;
#undef GC_SIGNEDWORD
#undef GC_UNSIGNEDWORD

#if !defined(_UINTPTR_T) && !defined(_UINTPTR_T_DEFINED) \
&& !defined(UINTPTR_MAX)
typedef GC_word GC_uintptr_t;
#else
#if defined(_UINTPTR_T) || defined(_UINTPTR_T_DEFINED)
typedef uintptr_t GC_uintptr_t;
#else
typedef GC_word GC_uintptr_t;
#endif

/* Is first pointer has a smaller address than the second one? The */
Expand Down

0 comments on commit 03560ac

Please sign in to comment.