Skip to content

Commit

Permalink
Remove macro definitions of snprintf and vsnprintf (#7536)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldesreumaux authored Dec 26, 2021
1 parent 29bfa94 commit 3886c3d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions rabit/include/rabit/internal/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,7 @@
#define fopen64 std::fopen
#endif // !defined(__GNUC__) || defined(__FreeBSD__)

#ifdef _MSC_VER
// NOTE: sprintf_s is not equivalent to snprintf,
// they are equivalent when success, which is sufficient for our case
#define snprintf sprintf_s
#define vsnprintf vsprintf_s

#else
#ifndef _MSC_VER

#ifdef _FILE_OFFSET_BITS
#if _FILE_OFFSET_BITS == 32
Expand Down

0 comments on commit 3886c3d

Please sign in to comment.