[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [compile error] execute.c b/c local variable 'stdin' in 'debug_print
RE: [compile error] execute.c b/c local variable 'stdin' in 'debug_print_input '
Thu, 1 Nov 2018 17:40:48 +0100
On Thu, 1 Nov 2018 10:15:04 -0600, Assaf Gordon wrote:
> I assume it's an issue specific to the definition of 'stdin' in
> windows/msys2, as there is no compilation issue with gcc-8.2 on linux.
Just digging into that a bit and I think it is rather the other way round:
stdin - together with stdout and stderr - is of type FILE* according to POSIX
in the special case of linux a FILE object is a buffering object around a file
So linux happened to not complain about the type collision I ran into.
Many thanks for the patch!