diff --git a/docs/UnityConfigurationGuide.pdf b/docs/UnityConfigurationGuide.pdf index 5ca1a7f..c14e88d 100644 Binary files a/docs/UnityConfigurationGuide.pdf and b/docs/UnityConfigurationGuide.pdf differ diff --git a/src/unity_internals.h b/src/unity_internals.h index bdcee92..1edb961 100644 --- a/src/unity_internals.h +++ b/src/unity_internals.h @@ -252,14 +252,19 @@ extern void UNITY_OUTPUT_CHAR(int); #endif #ifndef UNITY_OUTPUT_FLUSH -/* Default to using fflush, which is defined in stdio.h */ +#ifdef UNITY_USE_FLUSH_STDOUT +/* We want to use the stdout flush utility */ #include #define UNITY_OUTPUT_FLUSH (void)fflush(stdout) #else - /* If defined as something else, make sure we declare it here so it's ready for use */ - #ifndef UNITY_OMIT_OUTPUT_FLUSH_HEADER_DECLARATION +/* We've specified nothing, therefore flush should just be ignored */ +#define UNITY_OUTPUT_FLUSH +#endif +#else +/* We've defined flush as something else, so make sure we declare it here so it's ready for use */ +#ifndef UNITY_OMIT_OUTPUT_FLUSH_HEADER_DECLARATION extern void UNITY_OUTPUT_FLUSH(void); - #endif +#endif #endif #ifndef UNITY_OUTPUT_FLUSH diff --git a/test/targets/clang_strict.yml b/test/targets/clang_strict.yml index b399d76..e5b41ab 100644 --- a/test/targets/clang_strict.yml +++ b/test/targets/clang_strict.yml @@ -55,8 +55,6 @@ compiler: - UNITY_INCLUDE_DOUBLE - UNITY_SUPPORT_TEST_CASES - UNITY_SUPPORT_64 - - UNITY_OUTPUT_FLUSH - - UNITY_OMIT_OUTPUT_FLUSH_HEADER_DECLARATION object_files: prefix: '-o' extension: '.o'