Skip to content

Commit a34394e

Browse files
author
ripley
committed
include more of Boolean.h
git-svn-id: https://svn.r-project.org/R/trunk@87949 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 4d9da26 commit a34394e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/include/Rmath.h0.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,14 @@ double Rlog1p(double);
196196
#undef FALSE
197197
#undef TRUE
198198
typedef enum { FALSE = 0, TRUE } Rboolean;
199+
// stdbool.h is obsolescent but we could pro tem just use it.
200+
// But to future-proof copy from Boolean.h
201+
#if defined __STDC_VERSION__ && __STDC_VERSION__ > 202000L
202+
#elif defined __cplusplus
203+
#else
204+
# include <stdbool.h>
205+
#endif
206+
199207
# endif
200208
#else
201209
# include <R_ext/Boolean.h>

0 commit comments

Comments
 (0)