[vlc-devel] commit: Mingw64 defines _I64_MAX in limits.h (Jean-Baptiste Kempf )

git version control git at videolan.org
Sun Jun 1 00:40:53 CEST 2008


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri May 23 16:03:27 2008 -0700| [42a19ee8d0729b5fb39a994b4778990f6227b48d]

Mingw64 defines _I64_MAX in limits.h

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=42a19ee8d0729b5fb39a994b4778990f6227b48d
---

 modules/access/bda/bda.h      |    4 +++-
 modules/access/dshow/common.h |    4 +++-
 modules/access/dshow/filter.h |    4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/modules/access/bda/bda.h b/modules/access/bda/bda.h
index 8f4d37b..9547cae 100644
--- a/modules/access/bda/bda.h
+++ b/modules/access/bda/bda.h
@@ -48,7 +48,9 @@
 #   define AM_NOVTABLE
 #   define _OBJBASE_H_
 #   undef _X86_
-#   define _I64_MAX LONG_LONG_MAX
+#   ifndef _I64_MAX
+#     define _I64_MAX LONG_LONG_MAX
+#   endif
 #   define LONGLONG long long
 #endif
 
diff --git a/modules/access/dshow/common.h b/modules/access/dshow/common.h
index 098f51c..136375d 100644
--- a/modules/access/dshow/common.h
+++ b/modules/access/dshow/common.h
@@ -41,7 +41,9 @@ using namespace std;
 #   define AM_NOVTABLE
 #   define _OBJBASE_H_
 #   undef _X86_
-#   define _I64_MAX LONG_LONG_MAX
+#   ifndef _I64_MAX
+#     define _I64_MAX LONG_LONG_MAX
+#   endif
 #   define LONGLONG long long
 #endif
 
diff --git a/modules/access/dshow/filter.h b/modules/access/dshow/filter.h
index 73bea53..85951f0 100644
--- a/modules/access/dshow/filter.h
+++ b/modules/access/dshow/filter.h
@@ -41,7 +41,9 @@ using namespace std;
 #   define AM_NOVTABLE
 #   define _OBJBASE_H_
 #   undef _X86_
-#   define _I64_MAX LONG_LONG_MAX
+#   ifndef _I64_MAX
+#     define _I64_MAX LONG_LONG_MAX
+#   endif
 #   define LONGLONG long long
 #endif
 




More information about the vlc-devel mailing list