mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
define __STDC_* macros in y.tab.cxx too
This commit is contained in:
@@ -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}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user