From 6441d1415a9586676f23c751fe71c6f927734361 Mon Sep 17 00:00:00 2001 From: Jose Date: Fri, 19 Oct 2012 18:17:38 +0200 Subject: Fixed IceUtil\Exception.h macros for WinRT builds --- cpp/src/IceUtil/Exception.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'cpp/src') diff --git a/cpp/src/IceUtil/Exception.cpp b/cpp/src/IceUtil/Exception.cpp index eda8311b19f..c90b6bb9879 100644 --- a/cpp/src/IceUtil/Exception.cpp +++ b/cpp/src/IceUtil/Exception.cpp @@ -7,14 +7,14 @@ // // ********************************************************************** -#if !defined(ICE_OS_WINRT) && defined(_MSC_VER) && _MSC_VER >= 1700 +#if defined(_MSC_VER) && _MSC_VER >= 1700 // // DbgHelp.dll on Windows XP does not contain Unicode functions, so we // "switch on" Unicode only with VS2012 and up // -# define UNICODE -# define DBGHELP_TRANSLATE_TCHAR -# include +# ifndef UNICODE +# define UNICODE +# endif #endif #include @@ -34,6 +34,10 @@ #endif #if defined(_WIN32) && !defined(__MINGW32__) && !defined(ICE_OS_WINRT) +# if defined(_MSC_VER) && _MSC_VER >= 1700 +# define DBGHELP_TRANSLATE_TCHAR +# include +# endif # include # define ICE_STACK_TRACES # define ICE_WIN32_STACK_TRACES -- cgit v1.2.3