tools/mkconfig.c: Add logic to keep all of the buffering options in sync.

This commit is contained in:
Gregory Nutt
2017-02-09 16:17:54 -06:00
parent 98d072a1f7
commit 0b4a9539be
2 changed files with 5 additions and 2 deletions
+4 -2
View File
@@ -205,8 +205,10 @@ int main(int argc, char **argv, char **envp)
printf(" * support is disabled\n");
printf(" */\n\n");
printf("#if CONFIG_NFILE_STREAMS == 0\n");
printf("# undef CONFIG_STDIO_BUFFER_SIZE\n");
printf("# define CONFIG_STDIO_BUFFER_SIZE 0\n");
printf("# undef CONFIG_STDIO_BUFFER_SIZE\n");
printf("# undef CONFIG_STDIO_LINEBUFFER\n");
printf("# undef CONFIG_STDIO_DISABLE_BUFFERING\n");
printf("# define CONFIG_STDIO_DISABLE_BUFFERING 1\n");
printf("#endif\n\n");
printf("/* If the maximum message size is zero, then we assume that message queues\n");