[Gimp-developer] Windows gimp-spawn.c compile Error
- From: Partha Bagchi <partha1b gmail com>
- To: gimp-developer <gimp-developer-list gnome org>
- Subject: [Gimp-developer] Windows gimp-spawn.c compile Error
- Date: Fri, 9 Mar 2018 16:30:10 -0500
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]