Fix undef of small with WIN32_LEAN_AND_MEAN defined.

GitOrigin-RevId: ca8ca03bdf62e9aaf2fe44078aa074296a3a949e
This commit is contained in:
levlam 2020-04-01 00:36:01 +03:00
parent c7411004be
commit f9e8bbdff4

View File

@ -9,7 +9,6 @@
#include "td/utils/port/config.h" #include "td/utils/port/config.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#undef small
#if TD_WINRT #if TD_WINRT
@ -21,6 +20,8 @@
#include <map> #include <map>
#include <mutex> #include <mutex>
#undef small
#define REF_NEW ref new #define REF_NEW ref new
#define CLRCALL #define CLRCALL
#define DEPRECATED_ATTRIBUTE(message) ::Windows::Foundation::Metadata::Deprecated(message,\ #define DEPRECATED_ATTRIBUTE(message) ::Windows::Foundation::Metadata::Deprecated(message,\
@ -90,6 +91,8 @@ inline String^ string_from_unmanaged(const std::string &from) {
#elif TD_CLI #elif TD_CLI
#undef small
#define REF_NEW gcnew #define REF_NEW gcnew
#define CLRCALL __clrcall #define CLRCALL __clrcall
#define DEPRECATED_ATTRIBUTE(message) System::ObsoleteAttribute(message) #define DEPRECATED_ATTRIBUTE(message) System::ObsoleteAttribute(message)