code for Windows App Store do not have access to the ANSI calls used in Debug.cpp

so we disable debug for these targets
This commit is contained in:
Steve Lhomme 2015-06-15 09:45:17 +02:00
parent 49750c62ca
commit a858efec74
2 changed files with 12 additions and 0 deletions

View File

@ -10,4 +10,5 @@ AC_ARG_ENABLE([debug],
[enable_debug="$withval"], [enable_debug=no])
AM_CONDITIONAL([ENABLE_DEBUG], [test "$enable_debug" = yes])
AC_CONFIG_FILES([Makefile libebml.pc])
AC_CHECK_HEADERS([winapifamily.h])
AC_OUTPUT

View File

@ -36,6 +36,10 @@
#ifndef LIBEBML_CONFIG_H
#define LIBEBML_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#if defined(__linux__)
#include <endian.h>
#if __BYTE_ORDER == __LITTLE_ENDIAN
@ -100,6 +104,13 @@
#define LIBEBML_DEBUG
#endif
#ifdef HAVE_WINAPIFAMILY_H
# include <winapifamily.h>
# 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__