From ea663550a968628671946cc097da473459bff757 Mon Sep 17 00:00:00 2001 From: Greg Hendershott Date: Thu, 3 Jan 2019 21:06:00 -0500 Subject: [PATCH] Fix rktio_create_console decl The rktio/parse.rkt grammar doesn't handle empty argument lists and was choking on this line, before it even got to my new line adding rktio_udp_set_receive_buffer. Fix by following example of using `(void)` instead of `()`. Two notes: - I forget which variation of C or C++ requires (void) instead of (). - Strictly speaking, this commit isn't part of the theme of this PR. If I squash the other commits down to one, maybe I should leave this separate. --- racket/src/rktio/rktio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/racket/src/rktio/rktio.h b/racket/src/rktio/rktio.h index 6153c7dca8..cafaf2f6b6 100644 --- a/racket/src/rktio/rktio.h +++ b/racket/src/rktio/rktio.h @@ -245,7 +245,7 @@ RKTIO_EXTERN rktio_fd_t *rktio_std_fd(rktio_t *rktio, int which); #define RKTIO_STDOUT 1 #define RKTIO_STDERR 2 -RKTIO_EXTERN void rktio_create_console(); +RKTIO_EXTERN void rktio_create_console(void); /* On Windows, ensures that a console is available for output. If a console is created for an application started in GUI mode, The console cannot be closed by the user until the process exits, and