Use #pragma managed(push, off) around unmanaged includes in managed code.
GitOrigin-RevId: 1b8944dfa23e38f675aec0f25d78644baa27ab84
This commit is contained in:
parent
b5b1c4c3a6
commit
de6d5359ed
@ -4,13 +4,17 @@
|
||||
// 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)
|
||||
//
|
||||
#pragma managed(push, off)
|
||||
#include "td/telegram/Client.h"
|
||||
#pragma managed(pop)
|
||||
|
||||
#include "td/telegram/TdDotNetApi.h"
|
||||
|
||||
#include "td/utils/port/CxCli.h"
|
||||
|
||||
#pragma managed(push, off)
|
||||
#include <cstdint>
|
||||
#pragma managed(pop)
|
||||
|
||||
namespace Telegram {
|
||||
namespace Td {
|
||||
|
@ -4,11 +4,15 @@
|
||||
// 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)
|
||||
//
|
||||
#pragma managed(push, off)
|
||||
#include "td/telegram/Log.h"
|
||||
#pragma managed(pop)
|
||||
|
||||
#include "td/utils/port/CxCli.h"
|
||||
|
||||
#pragma managed(push, off)
|
||||
#include <cstdint>
|
||||
#pragma managed(pop)
|
||||
|
||||
namespace Telegram {
|
||||
namespace Td {
|
||||
|
@ -8,8 +8,10 @@
|
||||
|
||||
#include "td/utils/port/CxCli.h"
|
||||
|
||||
#pragma managed(push, off)
|
||||
#include "td/telegram/td_api.h"
|
||||
#include "td/telegram/td_api.hpp"
|
||||
#pragma managed(pop)
|
||||
|
||||
namespace Telegram {
|
||||
namespace Td {
|
||||
|
@ -6,19 +6,25 @@
|
||||
//
|
||||
#pragma once
|
||||
|
||||
#pragma managed(push, off)
|
||||
#include "td/utils/port/config.h"
|
||||
#pragma managed(pop)
|
||||
|
||||
#include "td/utils/common.h"
|
||||
|
||||
#if TD_WINRT
|
||||
|
||||
#pragma managed(push, off)
|
||||
#include "td/utils/port/wstring_convert.h"
|
||||
#pragma managed(pop)
|
||||
|
||||
#include "collection.h"
|
||||
|
||||
#pragma managed(push, off)
|
||||
#include <cstdint>
|
||||
#include <map>
|
||||
#include <mutex>
|
||||
#pragma managed(pop)
|
||||
|
||||
#undef small
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user