diff --git a/tdutils/td/utils/port/CxCli.h b/tdutils/td/utils/port/CxCli.h index 6c2691c4..0eaa7d60 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)