From 294fa31f1ad89a04ca4741a1e421a9fc33e0e1cb Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Sat, 6 Jun 2020 19:42:16 +0800 Subject: [PATCH] undef sprintf before blocking it --- src/data.table.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/data.table.h b/src/data.table.h index aff0088ac0..eed481be69 100644 --- a/src/data.table.h +++ b/src/data.table.h @@ -16,6 +16,9 @@ #ifdef WIN32 // positional specifiers (%n$) used in translations; #4402 # define snprintf dt_win_snprintf // see our snprintf.c; tried and failed to link to _sprintf_p on Windows #endif +#ifdef sprintf +#undef sprintf +#endif #define sprintf USE_SNPRINTF_NOT_SPRINTF // prevent use of sprintf in data.table source; force us to use n always // #include // the debugging machinery + breakpoint aidee