From f9e8bbdff4f411852d366f40ae7097ce55086c10 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 1 Apr 2020 00:36:01 +0300 Subject: [PATCH] Fix undef of small with WIN32_LEAN_AND_MEAN defined. GitOrigin-RevId: ca8ca03bdf62e9aaf2fe44078aa074296a3a949e --- tdutils/td/utils/port/CxCli.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tdutils/td/utils/port/CxCli.h b/tdutils/td/utils/port/CxCli.h index 6c2691c48..0eaa7d60e 100644 --- a/tdutils/td/utils/port/CxCli.h +++ b/tdutils/td/utils/port/CxCli.h @@ -9,7 +9,6 @@ #include "td/utils/port/config.h" #include "td/utils/common.h" -#undef small #if TD_WINRT @@ -21,6 +20,8 @@ #include #include +#undef small + #define REF_NEW ref new #define CLRCALL #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 +#undef small + #define REF_NEW gcnew #define CLRCALL __clrcall #define DEPRECATED_ATTRIBUTE(message) System::ObsoleteAttribute(message)