Skip to content

Commit

Permalink
Suppress macro redefinition warnings
Browse files Browse the repository at this point in the history
When building with ruby, `snprintf` is replaced with `ruby_snprintf`.
  • Loading branch information
nobu committed Sep 5, 2023
1 parent ab9d191 commit 88b2529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yarp/defines.h
Expand Up @@ -36,7 +36,7 @@
#endif

// Windows versions before 2015 use _snprintf
#if defined(_MSC_VER) && (_MSC_VER < 1900)
#if !defined(snprintf) && defined(_MSC_VER) && (_MSC_VER < 1900)
# define snprintf _snprintf
#endif

Expand Down

0 comments on commit 88b2529

Please sign in to comment.