Re: [Gimp-developer] Windows gimp-spawn.c compile Error
- From: Ell <ell_se yahoo com>
- To: gimp-developer-list gnome org
- Subject: Re: [Gimp-developer] Windows gimp-spawn.c compile Error
- Date: Sat, 10 Mar 2018 02:27:05 -0500
On Fri, 9 Mar 2018 16:30:10 -0500
Partha Bagchi <partha1b gmail com> 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]