Skip to content

Commit

Permalink
Support targets without signals (like WASI)
Browse files Browse the repository at this point in the history
  • Loading branch information
amesgen authored and RyanGlScott committed Apr 30, 2023
1 parent cb18ad1 commit fede8d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Generics/Deriving/Enum.hs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,11 @@ instance GEnum CShort where
genum = coerce (genum :: [HTYPE_SHORT])

instance GEnum CSigAtomic where
#if defined(HTYPE_SIG_ATOMIC_T)
genum = coerce (genum :: [HTYPE_SIG_ATOMIC_T])
#else
genum = coerce (genum :: [Int32])
#endif

instance GEnum CSize where
genum = coerce (genum :: [HTYPE_SIZE_T])
Expand Down

0 comments on commit fede8d8

Please sign in to comment.