summaryrefslogtreecommitdiffstats
path: root/src/flac-win32.patch
blob: 19812ada591ab2f825b5eb96c6b1332cc3c0720e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
This file is part of mingw-cross-env.
See doc/index.html or doc/README for further information.

diff -ru flac-1.2.1.orig/include/share/alloc.h flac-1.2.1/include/share/alloc.h
--- flac-1.2.1.orig/include/share/alloc.h       2007-09-12 07:32:21.000000000 +0200
+++ flac-1.2.1/include/share/alloc.h    2009-10-27 19:55:58.000000000 +0100
@@ -35,7 +35,7 @@
 
 #ifndef SIZE_MAX
 # ifndef SIZE_T_MAX
-#  ifdef _MSC_VER
+#  if defined _MSC_VER || defined __MINGW32__
 #   define SIZE_T_MAX UINT_MAX
 #  else
 #   error