diff options
author | Paul Smith <psmith@gnu.org> | 2013-09-21 17:24:59 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2013-09-21 17:24:59 -0400 |
commit | 6c3e88e60f2c7d2bff3aa1967afcc59f27626c48 (patch) | |
tree | 2f5d702aa25de4f1815eed3f57b8b43cbf0dca35 /output.h | |
parent | 9cd01958da86a68d0e47defcb9745ab373ef3d79 (diff) | |
download | gunmake-6c3e88e60f2c7d2bff3aa1967afcc59f27626c48.tar.gz |
Ensure that output generated while reading makefiles is synced.
Diffstat (limited to 'output.h')
-rw-r--r-- | output.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -24,7 +24,7 @@ struct output extern struct output *output_context; extern unsigned int stdio_traced; -#define OUTPUT_SET(_new) do{ if ((_new)->syncout) output_context = (_new); }while(0) +#define OUTPUT_SET(_new) do{ output_context = (_new)->syncout ? (_new) : NULL; }while(0) #define OUTPUT_UNSET() do{ output_context = NULL; }while(0) #define OUTPUT_TRACED() do{ stdio_traced = 1; }while(0) |