Add the __STDC_CONSTANT_MACROS define to the ffms2 CFLAGS. Fixes compilation with newer ffmpeg's.

Originally committed to SVN as r4488.
This commit is contained in:
Karl Blomster 2010-06-12 14:52:13 +00:00
parent ea6dac551e
commit 0a590aea04
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ AUTOMAKE_OPTIONS = subdir-objects
noinst_LIBRARIES = libffmpegsource_aegisub.a noinst_LIBRARIES = libffmpegsource_aegisub.a
AM_CPPFLAGS = -Icore -Iinclude -D__UNIX__ -DFFMS_EXPORTS -DHAVE_STRLCPY @LIBAVFORMAT_CFLAGS@ @LIBAVCODEC_CFLAGS@ @LIBSWSCALE_CFLAGS@ @LIBAVUTIL_CFLAGS@ @LIBPOSTPROC_CFLAGS@ AM_CPPFLAGS = -Icore -Iinclude -D__UNIX__ -DFFMS_EXPORTS -DHAVE_STRLCPY -D__STDC_CONSTANT_MACROS @LIBAVFORMAT_CFLAGS@ @LIBAVCODEC_CFLAGS@ @LIBSWSCALE_CFLAGS@ @LIBAVUTIL_CFLAGS@ @LIBPOSTPROC_CFLAGS@
libffmpegsource_aegisub_a_SOURCES = \ libffmpegsource_aegisub_a_SOURCES = \

View File

@ -19,7 +19,7 @@ def build(bld):
obj = bld.new_task_gen( obj = bld.new_task_gen(
features = 'cc cxx cstaticlib', features = 'cc cxx cstaticlib',
target = 'ffmpegsource_aegisub', target = 'ffmpegsource_aegisub',
defines = 'FFMS_EXPORTS HAVE_STRLCPY', defines = 'FFMS_EXPORTS HAVE_STRLCPY __STDC_CONSTANT_MACROS',
includes = 'include src/core', includes = 'include src/core',
uselib = 'FFMPEG') uselib = 'FFMPEG')