From 740ede8c9502481c2df77593f4c00311ea9efe6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Colin=20G=C3=BCnther?= Date: Wed, 20 Aug 2014 12:01:09 +0200 Subject: [PATCH] dvb.media_addon: Let C++ use C99 math features. - This get rids of the complain "'UINT64_C' was not declared in this scope" and allows us to remove the (now superflous) declaration of UINT64_C. - No functional change intended. --- src/add-ons/media/media-add-ons/dvb/Jamfile | 1 + src/add-ons/media/media-add-ons/dvb/MediaFormat.cpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/media/media-add-ons/dvb/Jamfile b/src/add-ons/media/media-add-ons/dvb/Jamfile index 9986b45312..f92e3adffa 100644 --- a/src/add-ons/media/media-add-ons/dvb/Jamfile +++ b/src/add-ons/media/media-add-ons/dvb/Jamfile @@ -8,6 +8,7 @@ UseHeaders [ FDirName $(ffmpegHeaders) libavcodec ] ; UseHeaders [ FDirName $(ffmpegHeaders) libavformat ] ; UseHeaders [ FDirName $(ffmpegHeaders) libavutil ] ; +SubDirC++Flags -D__STDC_CONSTANT_MACROS -Wno-deprecated-declarations ; Addon dvb.media_addon : DVBCard.cpp diff --git a/src/add-ons/media/media-add-ons/dvb/MediaFormat.cpp b/src/add-ons/media/media-add-ons/dvb/MediaFormat.cpp index 9b7566213c..187f93044f 100644 --- a/src/add-ons/media/media-add-ons/dvb/MediaFormat.cpp +++ b/src/add-ons/media/media-add-ons/dvb/MediaFormat.cpp @@ -27,7 +27,6 @@ #include #include "MediaFormat.h" -#define UINT64_C(c) (c ## ULL) extern "C" { #include "avcodec.h"