Skip to content

Commit dc7fb4d

Browse files
Version-guard STRING_PTR definition (#6654)
1 parent 436bd6c commit dc7fb4d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/data.table.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# define ALTREP(x) 0 // #2866
77
# define USE_RINTERNALS // #3301
88
# define DATAPTR_RO(x) ((const void *)DATAPTR(x))
9+
# define STRING_PTR_RO STRING_PTR
910
# define R_Calloc(x, y) Calloc(x, y) // #6380
1011
# define R_Realloc(x, y, z) Realloc(x, y, z)
1112
# define R_Free(x) Free(x)
@@ -15,9 +16,6 @@
1516
#endif
1617
#include <Rinternals.h>
1718
#define SEXPPTR_RO(x) ((const SEXP *)DATAPTR_RO(x)) // to avoid overhead of looped STRING_ELT and VECTOR_ELT
18-
#ifndef STRING_PTR_RO
19-
#define STRING_PTR_RO STRING_PTR
20-
#endif
2119
#include <stdint.h> // for uint64_t rather than unsigned long long
2220
#include <stdarg.h> // for va_list, va_start
2321
#include <stdbool.h>

0 commit comments

Comments
 (0)