Use #pragma managed(push, off) around unmanaged includes in managed code.

GitOrigin-RevId: 1b8944dfa23e38f675aec0f25d78644baa27ab84
This commit is contained in:
levlam 2020-06-06 22:51:45 +03:00
parent b5b1c4c3a6
commit de6d5359ed
4 changed files with 16 additions and 0 deletions

View File

@ -4,13 +4,17 @@
// Distributed under the Boost Software License, Version 1.0. (See accompanying // Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// //
#pragma managed(push, off)
#include "td/telegram/Client.h" #include "td/telegram/Client.h"
#pragma managed(pop)
#include "td/telegram/TdDotNetApi.h" #include "td/telegram/TdDotNetApi.h"
#include "td/utils/port/CxCli.h" #include "td/utils/port/CxCli.h"
#pragma managed(push, off)
#include <cstdint> #include <cstdint>
#pragma managed(pop)
namespace Telegram { namespace Telegram {
namespace Td { namespace Td {

View File

@ -4,11 +4,15 @@
// Distributed under the Boost Software License, Version 1.0. (See accompanying // Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// //
#pragma managed(push, off)
#include "td/telegram/Log.h" #include "td/telegram/Log.h"
#pragma managed(pop)
#include "td/utils/port/CxCli.h" #include "td/utils/port/CxCli.h"
#pragma managed(push, off)
#include <cstdint> #include <cstdint>
#pragma managed(pop)
namespace Telegram { namespace Telegram {
namespace Td { namespace Td {

View File

@ -8,8 +8,10 @@
#include "td/utils/port/CxCli.h" #include "td/utils/port/CxCli.h"
#pragma managed(push, off)
#include "td/telegram/td_api.h" #include "td/telegram/td_api.h"
#include "td/telegram/td_api.hpp" #include "td/telegram/td_api.hpp"
#pragma managed(pop)
namespace Telegram { namespace Telegram {
namespace Td { namespace Td {

View File

@ -6,19 +6,25 @@
// //
#pragma once #pragma once
#pragma managed(push, off)
#include "td/utils/port/config.h" #include "td/utils/port/config.h"
#pragma managed(pop)
#include "td/utils/common.h" #include "td/utils/common.h"
#if TD_WINRT #if TD_WINRT
#pragma managed(push, off)
#include "td/utils/port/wstring_convert.h" #include "td/utils/port/wstring_convert.h"
#pragma managed(pop)
#include "collection.h" #include "collection.h"
#pragma managed(push, off)
#include <cstdint> #include <cstdint>
#include <map> #include <map>
#include <mutex> #include <mutex>
#pragma managed(pop)
#undef small #undef small