Bug 79407 - Include windows.h, not Windows.h
Summary: Include windows.h, not Windows.h
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-29 10:57 UTC by Hib Eris
Modified: 2014-10-31 21:56 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Include windows.h, not Windows.h (1.15 KB, patch)
2014-05-29 10:57 UTC, Hib Eris
Details | Splinter Review

Description Hib Eris 2014-05-29 10:57:45 UTC
Fixes building on file systems that are case sensitive, e.g. when
cross compiling on Linux for win32.
Comment 1 Hib Eris 2014-05-29 10:57:47 UTC
Created attachment 100100 [details] [review]
Include windows.h, not Windows.h
Comment 2 Albert Astals Cid 2014-06-03 18:49:28 UTC
How do you know the file is canonically named windows.h and not Windows.h ?
Comment 3 Hib Eris 2014-06-04 05:39:49 UTC
(In reply to comment #2)
> How do you know the file is canonically named windows.h and not Windows.h ?

There are other places in poppler's source code that all include 'windows.h' and have been there for a long time and have always worked for everyone.

The two additions of Windows.h are only included in a recent release.
Comment 4 Adam Reichold 2014-10-31 08:29:12 UTC
(In reply to Albert Astals Cid from comment #2)
> How do you know the file is canonically named windows.h and not Windows.h ?

Even Microsoft's own documentation does not seem to be consistent w.r.t. this, e.g. [1] and [2]. But a grep for "windows.h" has 9 hits within Poppler whereas "Windows.h" has only these two.

[1] http://msdn.microsoft.com/en-us/library/bb384843.aspx

[2] http://msdn.microsoft.com/en-us/library/ms646257.aspx
Comment 5 Adrian Johnson 2014-10-31 09:04:54 UTC
Comment on attachment 100100 [details] [review]
Include windows.h, not Windows.h

Review of attachment 100100 [details] [review]:
-----------------------------------------------------------------

Look good to me. Windows filesystems are case insensitive so native builds will not be affected.
Comment 6 Albert Astals Cid 2014-10-31 21:56:51 UTC
Pushed.


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.