diff --git a/auto/generate_test_runner.rb b/auto/generate_test_runner.rb index aebecb1a86f23b44349550329c716ba5626c8c80..dab5096c0026c523094fd1d9cb4483454a22c486 100644 --- a/auto/generate_test_runner.rb +++ b/auto/generate_test_runner.rb @@ -169,9 +169,7 @@ class UnityTestRunnerGenerator output.puts('/* AUTOGENERATED FILE. DO NOT EDIT. */') create_runtest(output, mocks) output.puts("\n/*=======Automagically Detected Files To Include=====*/") - output.puts('#ifdef __WIN32__') - output.puts('#define UNITY_INCLUDE_SETUP_STUBS') - output.puts('#endif') + output.puts('#define UNITY_INCLUDE_SETUP_STUBS') if @options[:suite_setup].nil? output.puts("#include \"#{@options[:framework]}.h\"") output.puts('#include "cmock.h"') unless mocks.empty? output.puts('#ifndef UNITY_EXCLUDE_SETJMP_H') diff --git a/src/unity.c b/src/unity.c index b821173b1078cc0a1fb71ed5919530b2670ec73e..8c45bd933fd62ecc8f0467eda6c93e5917e8d88d 100644 --- a/src/unity.c +++ b/src/unity.c @@ -4,7 +4,6 @@ [Released under MIT License. Please refer to license.txt for details] ============================================================================ */ -#define UNITY_INCLUDE_SETUP_STUBS #include "unity.h" #include