Skip to content

Commit

Permalink
Version-guard STRING_PTR definition (#6654)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico authored Dec 10, 2024
1 parent 436bd6c commit dc7fb4d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/data.table.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# define ALTREP(x) 0 // #2866
# define USE_RINTERNALS // #3301
# define DATAPTR_RO(x) ((const void *)DATAPTR(x))
# define STRING_PTR_RO STRING_PTR
# define R_Calloc(x, y) Calloc(x, y) // #6380
# define R_Realloc(x, y, z) Realloc(x, y, z)
# define R_Free(x) Free(x)
Expand All @@ -15,9 +16,6 @@
#endif
#include <Rinternals.h>
#define SEXPPTR_RO(x) ((const SEXP *)DATAPTR_RO(x)) // to avoid overhead of looped STRING_ELT and VECTOR_ELT
#ifndef STRING_PTR_RO
#define STRING_PTR_RO STRING_PTR
#endif
#include <stdint.h> // for uint64_t rather than unsigned long long
#include <stdarg.h> // for va_list, va_start
#include <stdbool.h>
Expand Down

0 comments on commit dc7fb4d

Please sign in to comment.