Bug 79407

Summary: Include windows.h, not Windows.h
Product: poppler Reporter: Hib Eris <hib>
Component: generalAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: hib
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Include windows.h, not Windows.h

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.