• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1diff --git a/3rdparty/libpng/pngpriv.h b/3rdparty/libpng/pngpriv.h
2index 07b2b0b..e7824b8 100644
3--- a/3rdparty/libpng/pngpriv.h
4+++ b/3rdparty/libpng/pngpriv.h
5@@ -360,7 +360,7 @@ typedef PNG_CONST png_uint_16p FAR * png_const_uint_16pp;
6
7 /* Memory model/platform independent fns */
8 #ifndef PNG_ABORT
9-#  ifdef _WINDOWS_
10+#  if defined(_WINDOWS_) && !defined(WINRT)
11 #    define PNG_ABORT() ExitProcess(0)
12 #  else
13 #    define PNG_ABORT() abort()
14@@ -378,7 +378,7 @@ typedef PNG_CONST png_uint_16p FAR * png_const_uint_16pp;
15 #  define png_memcpy  _fmemcpy
16 #  define png_memset  _fmemset
17 #else
18-#  ifdef _WINDOWS_  /* Favor Windows over C runtime fns */
19+#  if defined(_WINDOWS_) && !defined(WINRT)  /* Favor Windows over C runtime fns */
20 #    define CVT_PTR(ptr)         (ptr)
21 #    define CVT_PTR_NOCHECK(ptr) (ptr)
22 #    define png_strlen  lstrlenA
23