On Fri, 9 Mar 2018 16:30:10 -0500 Partha Bagchi <partha1b@xxxxxxxxx> wrote: > Hi Ell, > > This one has me stumped. I get the following compile error: > > gimp-spawn.c: In function 'gimp_spawn_set_cloexec': > > gimp-spawn.c:244:26: error: 'HANDLE' undeclared (first use in this > > function) > > SetHandleInformation ((HANDLE) _get_osfhandle (fd), > > HANDLE_FLAG_INHERIT, 0); > > ^~~~~~ > > gimp-spawn.c:244:26: note: each undeclared identifier is reported > > only once for each function it appears in > > gimp-spawn.c:244:34: error: expected ')' before '_get_osfhandle' > > SetHandleInformation ((HANDLE) _get_osfhandle (fd), > > HANDLE_FLAG_INHERIT, 0); > > > I think this means that the includes windows.h and io.h are not seen. > If I change Line 34 > > > #ifdef G_OS_WIN32 > > to > > > #ifdef __WIN32__ > > > then it works for me. What do you think is going wrong? The include order was wrong, so the Windows headers were indeed not included. Fixed by b590b5954202fa379284a13914d1c08b0b8b221e. Thanks :) -- Ell _______________________________________________ gimp-developer-list mailing list List address: gimp-developer-list@xxxxxxxxx List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list List archives: https://mail.gnome.org/archives/gimp-developer-list