Bug 14107 - GRADIENT_FILL_RECT_H is undeclared
Summary: GRADIENT_FILL_RECT_H is undeclared
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: win32 backend (show other bugs)
Version: 1.5.6
Hardware: Other Windows (All)
: medium normal
Assignee: cairo-bugs mailing list
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-17 02:01 UTC by mehmet yasar
Modified: 2008-01-18 03:25 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description mehmet yasar 2008-01-17 02:01:02 UTC
I'm compiling Cairo for Win32 with mingw on Ubuntu dapper (6.06) and I have an error when compiling cairo-win32-printing-surface.c : GRADIENT_FILL_RECT_H is undeclared.

The definition of GRADIENT_FILL_RECT_H in the windows header is incorrect (the condition of definition is erroneous)

I have :
----- wingdi.h --------------
#if (WINVER > 0x500)
#define GRADIENT_FILL_RECT_H 0x00
#define GRADIENT_FILL_RECT_V 0x01
#define GRADIENT_FILL_TRIANGLE 0x02
#define GRADIENT_FILL_OP_FLAG 0xff
...
#endif
-------------------

That should be (it has been fixed with recent mingw):
-------------------
#if (WINVER >= 0x500)
#define GRADIENT_FILL_RECT_H 0x00
#define GRADIENT_FILL_RECT_V 0x01
#define GRADIENT_FILL_TRIANGLE 0x02
#define GRADIENT_FILL_OP_FLAG 0xff
...
#endif
-------------------

Cairo should test the definition of RADIENT_FILL_RECT_H after including windows.h.

Thanks


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.