Skip to content

Commit 43f6d47

Browse files
committed
FIX: adding missing type_traits include for casting macros with CPP11+
1 parent 1a63c3b commit 43f6d47

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/include/reb-c.h

+4
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@
4949
**
5050
***********************************************************************/
5151

52+
#if defined(__cplusplus) && __cplusplus >= 201103L
53+
#include <type_traits> // used in CASTING MACROS
54+
#endif
55+
5256
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
5357
/* C-code types: use C99 */
5458

0 commit comments

Comments
 (0)