From d5f805cd9890123afa10f230024473d3003667b9 Mon Sep 17 00:00:00 2001 From: Joseph Brill <48932340+jcbrill@users.noreply.github.com> Date: Sat, 27 Jun 2020 17:10:06 -0400 Subject: Add "#include " to generated c code to prevent build failures on x86 for MSVS 2015+. --- test/MSVS/vs-14.0-exec.py | 1 + test/MSVS/vs-14.0Exp-exec.py | 1 + test/MSVS/vs-14.1-exec.py | 1 + test/MSVS/vs-14.2-exec.py | 1 + 4 files changed, 4 insertions(+) diff --git a/test/MSVS/vs-14.0-exec.py b/test/MSVS/vs-14.0-exec.py index 1d5b9bc..7e919ba 100644 --- a/test/MSVS/vs-14.0-exec.py +++ b/test/MSVS/vs-14.0-exec.py @@ -81,6 +81,7 @@ env.Program('foo.c') """ % locals()) test.write(['sub dir', 'foo.c'], r""" +#include int main(int argc, char *argv) { diff --git a/test/MSVS/vs-14.0Exp-exec.py b/test/MSVS/vs-14.0Exp-exec.py index cb4aaf3..5d2a585 100644 --- a/test/MSVS/vs-14.0Exp-exec.py +++ b/test/MSVS/vs-14.0Exp-exec.py @@ -77,6 +77,7 @@ env.Program('foo.c') """ % locals()) test.write(['sub dir', 'foo.c'], r""" +#include int main(int argc, char *argv) { diff --git a/test/MSVS/vs-14.1-exec.py b/test/MSVS/vs-14.1-exec.py index bcf4fbe..2accaaf 100644 --- a/test/MSVS/vs-14.1-exec.py +++ b/test/MSVS/vs-14.1-exec.py @@ -81,6 +81,7 @@ env.Program('foo.c') """ % locals()) test.write(['sub dir', 'foo.c'], r""" +#include int main(int argc, char *argv) { diff --git a/test/MSVS/vs-14.2-exec.py b/test/MSVS/vs-14.2-exec.py index 1894031..5a3079d 100644 --- a/test/MSVS/vs-14.2-exec.py +++ b/test/MSVS/vs-14.2-exec.py @@ -81,6 +81,7 @@ env.Program('foo.c') """ % locals()) test.write(['sub dir', 'foo.c'], r""" +#include int main(int argc, char *argv) { -- cgit v0.12