@@ -246,31 +246,31 @@ typedef UNITY_FLOAT_TYPE UNITY_FLOAT;
246246#define UNITY_OUTPUT_CHAR (a ) (void)putchar(a)
247247#else
248248 /* If defined as something else, make sure we declare it here so it's ready for use */
249- #ifndef UNITY_OMIT_OUTPUT_CHAR_HEADER_DECLARATION
250- extern void UNITY_OUTPUT_CHAR ( int ) ;
249+ #ifdef UNITY_OUTPUT_CHAR_HEADER_DECLARATION
250+ extern void UNITY_OUTPUT_CHAR_HEADER_DECLARATION ;
251251 #endif
252252#endif
253253
254254#ifndef UNITY_OUTPUT_FLUSH
255255#ifdef UNITY_USE_FLUSH_STDOUT
256256/* We want to use the stdout flush utility */
257257#include <stdio.h>
258- #define UNITY_OUTPUT_FLUSH (void)fflush(stdout)
258+ #define UNITY_OUTPUT_FLUSH () (void)fflush(stdout)
259259#else
260260/* We've specified nothing, therefore flush should just be ignored */
261- #define UNITY_OUTPUT_FLUSH
261+ #define UNITY_OUTPUT_FLUSH ()
262262#endif
263263#else
264264/* We've defined flush as something else, so make sure we declare it here so it's ready for use */
265- #ifndef UNITY_OMIT_OUTPUT_FLUSH_HEADER_DECLARATION
266- extern void UNITY_OUTPUT_FLUSH ( void ) ;
265+ #ifdef UNITY_OUTPUT_FLUSH_HEADER_DECLARATION
266+ extern void UNITY_OMIT_OUTPUT_FLUSH_HEADER_DECLARATION ;
267267#endif
268268#endif
269269
270270#ifndef UNITY_OUTPUT_FLUSH
271271#define UNITY_FLUSH_CALL ()
272272#else
273- #define UNITY_FLUSH_CALL () UNITY_OUTPUT_FLUSH
273+ #define UNITY_FLUSH_CALL () UNITY_OUTPUT_FLUSH()
274274#endif
275275
276276#ifndef UNITY_PRINT_EOL
0 commit comments