File tree 1 file changed +11
-7
lines changed 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 34
34
# include < cstdio>
35
35
# include < climits>
36
36
# include < cstddef>
37
- extern " C" {
38
37
#else
39
38
# include < stdio.h>
40
39
# include < limits.h> /* for INT_MAX */
@@ -52,18 +51,23 @@ extern "C" {
52
51
53
52
#include < R_ext/libextern.h>
54
53
55
- typedef unsigned char Rbyte;
56
-
57
- /* type for length of (standard, not long) vectors etc */
58
- typedef int R_len_t;
59
- #define R_LEN_T_MAX INT_MAX
60
-
61
54
/* both config.h and Rconfig.h set SIZEOF_SIZE_T, but Rconfig.h is
62
55
skipped if config.h has already been included. */
63
56
#ifndef R_CONFIG_H
64
57
# include < Rconfig.h>
65
58
#endif
66
59
60
+ /* after all R headers */
61
+ #ifdef __cplusplus
62
+ extern " C" {
63
+ #endif
64
+
65
+ typedef unsigned char Rbyte;
66
+
67
+ /* type for length of (standard, not long) vectors etc */
68
+ typedef int R_len_t;
69
+ #define R_LEN_T_MAX INT_MAX
70
+
67
71
#if ( SIZEOF_SIZE_T > 4 )
68
72
# define LONG_VECTOR_SUPPORT
69
73
#endif
You can’t perform that action at this time.
0 commit comments