Remove some C++11 polyfill defines that are no longer needed

This commit is contained in:
Hugo Locurcio 2020-05-03 00:42:04 +02:00
parent d2887ea78b
commit 596d426151
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C
3 changed files with 1 additions and 29 deletions

View file

@ -34,17 +34,6 @@
#include "core/os/os.h"
#include "core/print_string.h"
// va_copy was defined in the C99, but not in C++ standards before C++11.
// When you compile C++ without --std=c++<XX> option, compilers still define
// va_copy, otherwise you have to use the internal version (__va_copy).
#if !defined(va_copy)
#if defined(__GNUC__)
#define va_copy(d, s) __va_copy((d), (s))
#else
#define va_copy(d, s) ((d) = (s))
#endif
#endif
#if defined(MINGW_ENABLED) || defined(_MSC_VER)
#define sprintf sprintf_s
#endif