From: Pierre d'Herbemont Date: Wed, 28 May 2008 00:29:52 +0000 (+0200) Subject: live555: Work around buggy Mac OS X headers for INT64_C. X-Git-Tag: 0.9.0-test0~629 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=a45f0c18e8fb82539eaabeb4ee1582e434d2b8f8;p=vlc live555: Work around buggy Mac OS X headers for INT64_C. --- diff --git a/modules/demux/live555.cpp b/modules/demux/live555.cpp index 49e89c43a8..575de2744d 100644 --- a/modules/demux/live555.cpp +++ b/modules/demux/live555.cpp @@ -44,7 +44,7 @@ #include #include -#include /* UINT64_C */ + #if defined( WIN32 ) # include @@ -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; /*****************************************************************************