From 271f06853f1fad02c2d1714572d1df0b32ae0140 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Fri, 21 Aug 2015 15:47:17 +0200 Subject: [PATCH] fix compilation for the Windows Store sandbox disable debug logging when compiling for WindowsRT and WindowsPhone --- ebml/EbmlConfig.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ebml/EbmlConfig.h b/ebml/EbmlConfig.h index 5874bc2..ccde3b5 100644 --- a/ebml/EbmlConfig.h +++ b/ebml/EbmlConfig.h @@ -100,6 +100,13 @@ #define LIBEBML_DEBUG #endif +#if defined(_WIN32)||defined(WIN32) +#include +# if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +# undef LIBEBML_DEBUG +# endif +#endif + // For compilers that don't define __TIMESTAMP__ (e.g. gcc 2.95, gcc 3.2) #ifndef __TIMESTAMP__ #define __TIMESTAMP__ __DATE__ " " __TIME__