From eaba8eb177cb5bbfb15c9ebbb9cca9bacd364e42 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 29 Nov 2011 23:17:58 +0000 Subject: [PATCH] Define __STDC_FORMAT_MACROS for all files in the Makefile and vc10 project, as was already done in the vc9 project. There's a decent number of files which need it and we don't have any naming conflicts with it so there's no reason not to. Originally committed to SVN as r5933. --- aegisub/build/msbuild/Aegisub/Aegisub.targets | 3 +-- aegisub/src/Makefile | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/aegisub/build/msbuild/Aegisub/Aegisub.targets b/aegisub/build/msbuild/Aegisub/Aegisub.targets index ef6ce18f2..cfd60ae00 100644 --- a/aegisub/build/msbuild/Aegisub/Aegisub.targets +++ b/aegisub/build/msbuild/Aegisub/Aegisub.targets @@ -202,7 +202,6 @@ WITH_FFMPEGSOURCE;%(PreprocessorDefinitions) - __STDC_FORMAT_MACROS;%(PreprocessorDefinitions) $(FFmpegSourceIncludePath);%(AdditionalIncludeDirectories) @@ -266,7 +265,7 @@ - HAVE_LITTLE_ENDIAN;%(PreprocessorDefinitions) + HAVE_LITTLE_ENDIAN;__STDC_FORMAT_MACROS;%(PreprocessorDefinitions) $(SrcDir)include\; $(SrcDir)msvc\; diff --git a/aegisub/src/Makefile b/aegisub/src/Makefile index 8c18e0758..bd73bcae1 100644 --- a/aegisub/src/Makefile +++ b/aegisub/src/Makefile @@ -7,7 +7,7 @@ PRECOMPILED_HEADER_NAME=agi_pre.h SUBDIRS = command libresrc -CXXFLAGS += -DAEGISUB -I. -I.. -Iinclude -I../libaegisub/include $(CFLAGS_PTHREAD) $(CPPFLAGS_WX) +CXXFLAGS += -DAEGISUB -D__STDC_FORMAT_MACROS -I. -I.. -Iinclude -I../libaegisub/include $(CFLAGS_PTHREAD) $(CPPFLAGS_WX) LDFLAGS += -L../libaegisub -laegisub-3.0 LDFLAGS += $(CFLAGS_DEBUG) $(CFLAGS_PROFILE) $(LDFLAGS_CCMALLOC) $(LDFLAGS_EFENCE) @@ -59,7 +59,6 @@ ifeq (yes, $(HAVE_FFMS)) SRC_OPT += audio_provider_ffmpegsource.cpp video_provider_ffmpegsource.cpp ffmpegsource_common.cpp audio_provider_ffmpegsource.o video_provider_ffmpegsource.o ffmpegsource_common.o: \ CXXFLAGS += $(CFLAGS_FFMS) -ffmpegsource_common.o: CXXFLAGS += -D__STDC_FORMAT_MACROS LDFLAGS += $(LDFLAGS_FFMS) LDFLAGS_POST += $(LDFLAGS_FFMS) endif @@ -103,7 +102,6 @@ audio_player.o: CXXFLAGS += $(CFLAGS_ALSA) $(CFLAGS_PORTAUDIO) $( audio_provider.o: CXXFLAGS += $(CFLAGS_FFMPEGSOURCE) auto4_base.o: CXXFLAGS += $(CFLAGS_FREETYPE) charset_detect.o: CXXFLAGS += -D_X86_ -dialog_timing_processor.o: CXXFLAGS += -D__STDC_FORMAT_MACROS font_file_lister_fontconfig.o: CXXFLAGS += $(CFLAGS_FONTCONFIG) $(CFLAGS_FREETYPE) font_file_lister.o: CXXFLAGS += $(CFLAGS_FREETYPE) text_file_reader.o: CXXFLAGS += -D_X86_