diff options
author | Ben Gamari <ben@smart-cactus.org> | 2022-11-23 19:42:02 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2023-01-27 23:56:43 -0500 |
commit | b5c75f1d4652f7aebea27a09509707a24615dbd7 (patch) | |
tree | 5229530222e6e6a2771f9885e3bf72ae74cec100 /rts/Trace.h | |
parent | 55a81995b7da53afba0d630d0c1b99f8ae475cfa (diff) | |
download | haskell-b5c75f1d4652f7aebea27a09509707a24615dbd7.tar.gz |
rts: Fix C++ compilation issues
Make the RTS compilable with a C++ compiler by inserting necessary
casts.
Diffstat (limited to 'rts/Trace.h')
-rw-r--r-- | rts/Trace.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rts/Trace.h b/rts/Trace.h index 6e08d0d2fd..6b1d797a30 100644 --- a/rts/Trace.h +++ b/rts/Trace.h @@ -33,7 +33,9 @@ void tracingAddCapapilities (uint32_t from, uint32_t to); #endif /* TRACING */ typedef StgWord32 CapsetID; +#if !defined(__cplusplus) typedef StgWord16 CapsetType; +#endif enum CapsetType { CapsetTypeCustom = CAPSET_TYPE_CUSTOM, CapsetTypeOsProcess = CAPSET_TYPE_OSPROCESS, CapsetTypeClockdomain = CAPSET_TYPE_CLOCKDOMAIN }; |