]> git.sesse.net Git - vlc/commitdiff
live555: Work around buggy Mac OS X headers for INT64_C.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 28 May 2008 00:29:52 +0000 (02:29 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 28 May 2008 00:30:06 +0000 (02:30 +0200)
modules/demux/live555.cpp

index 49e89c43a832ae6869035ebcf49453efb7a8f8ea..575de2744d298a2a8e44e7dbf87f8a5915934ae4 100644 (file)
@@ -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;
 
 /*****************************************************************************