From cc67c60938e5beb3d24ec5513b6e334051fc6b53 Mon Sep 17 00:00:00 2001 From: John Sebastian Peterson Date: Sat, 4 Jul 2015 05:57:04 +0200 Subject: [PATCH] hide cx keyword from winrt instead of a hacky undef that break the keyword --- include/libtorrent/alert_types.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/libtorrent/alert_types.hpp b/include/libtorrent/alert_types.hpp index 33bce2873..eb2499489 100644 --- a/include/libtorrent/alert_types.hpp +++ b/include/libtorrent/alert_types.hpp @@ -56,9 +56,6 @@ POSSIBILITY OF SUCH DAMAGE. #pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif -// c++/cx keyword -#undef interface - namespace libtorrent { @@ -1282,7 +1279,7 @@ namespace libtorrent virtual std::string message() const; TORRENT_NOT_DISCARDABLE -#ifndef TORRENT_NO_DEPRECATE +#if !defined(TORRENT_NO_DEPRECATE) && !defined(TORRENT_WINRT) // the interface libtorrent attempted to listen on std::string interface; #endif