[Gimp-developer] Windows gimp-spawn.c compile Error



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?

Thanks,
Partha


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]