define __STDC_* macros in y.tab.cxx too

This commit is contained in:
take_cheeze
2014-03-01 19:15:06 +09:00
parent fad4b578e1
commit 54f9ca36fd
+3
View File
@@ -40,6 +40,9 @@ EOS
file "#{current_build_dir}/y.tab.cxx" => "#{current_build_dir}/y.tab.c" do |t|
File.open(t.name, 'w') do |f|
f.write <<EOS
#define __STDC_CONSTANT_MACROS
#define __STDC_LIMIT_MACROS
extern "C" {
#include "#{t.prerequisites.first}"
}