[vlc-devel] commit: live555: Work around buggy Mac OS X headers for INT64_C. (Pierre d' Herbemont )
git version control
git at videolan.org
Wed May 28 02:29:30 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Wed May 28 02:29:52 2008 +0200| [a45f0c18e8fb82539eaabeb4ee1582e434d2b8f8]
live555: Work around buggy Mac OS X headers for INT64_C.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a45f0c18e8fb82539eaabeb4ee1582e434d2b8f8
---
modules/demux/live555.cpp | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/modules/demux/live555.cpp b/modules/demux/live555.cpp
index 49e89c4..575de27 100644
--- a/modules/demux/live555.cpp
+++ b/modules/demux/live555.cpp
@@ -44,7 +44,7 @@
#include <iostream>
#include <limits.h>
-#include <stdint.h> /* UINT64_C */
+
#if defined( WIN32 )
# include <winsock2.h>
@@ -59,6 +59,14 @@ extern "C" {
#include "../access/mms/asf.h" /* Who said ugly ? */
}
+/* XXX Ugly workaround: Buggy Mac OS X headers fail to define them */
+#ifndef INT64_C
+# define INT64_C(v) (v ## LL)
+#endif
+#ifndef UINT64_C
+# define UINT64_C(v) (v ## ULL)
+#endif
+
using namespace std;
/*****************************************************************************
More information about the vlc-devel
mailing list