Merge pull request #9 from Matroska-Org/winstore
code for Windows App Store do not have access to the ANSI calls used in Debug.cpp
This commit is contained in:
commit
267b24fb9e
@ -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
|
||||
|
@ -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__
|
||||
|
Loading…
Reference in New Issue
Block a user