Fix the Lexan build.

PiperOrigin-RevId: 520109290
pull/13171/head
Joshua Haberman 2 years ago committed by Copybara-Service
parent 2d273b6d74
commit bc7795702e
  1. 7
      upb/port/atomic.h

@ -106,9 +106,10 @@ UPB_INLINE bool _upb_NonAtomic_CompareExchangeStrongP(void* addr,
} }
} }
#define upb_Atomic_CompareExchangeStrong(addr, expected, desired, order) \ #define upb_Atomic_CompareExchangeStrong(addr, expected, desired, \
_Generic((desired), \ success_order, failure_order) \
uintptr_t: _upb_NonAtomic_CompareExchangeStrongU, \ _Generic((desired), \
uintptr_t: _upb_NonAtomic_CompareExchangeStrongU, \
void*: _upb_NonAtomic_CompareExchangeStrongP)(addr, expected, desired) void*: _upb_NonAtomic_CompareExchangeStrongP)(addr, expected, desired)
#endif #endif

Loading…
Cancel
Save