Skip to content

Commit f14ec4b

Browse files
Conditionally define STRING_PTR_RO on 3.3.0<=R<3.5.0
1 parent f5dcdb1 commit f14ec4b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/data.table.h

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
#endif
1313
#include <Rinternals.h>
1414
#define SEXPPTR_RO(x) ((const SEXP *)DATAPTR_RO(x)) // to avoid overhead of looped STRING_ELT and VECTOR_ELT
15+
#ifndef STRING_PTR_RO
16+
#define STRING_PTR_RO STRING_PTR
17+
#endif
1518
#include <stdint.h> // for uint64_t rather than unsigned long long
1619
#include <stdbool.h>
1720
#include "types.h"

0 commit comments

Comments
 (0)