Bug 24259 - Incorrect check for WIN32 in GooMutex
Summary: Incorrect check for WIN32 in GooMutex
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-01 10:28 UTC by Kovid Goyal
Modified: 2009-10-04 15:42 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
All instances of WIN32 (except cmake related) converted (19.47 KB, patch)
2009-10-01 17:02 UTC, Kovid Goyal
Details | Splinter Review

Description Kovid Goyal 2009-10-01 10:28:25 UTC
Patch 

index f78a14b..6b46fad 100644
--- a/goo/GooMutex.h
+++ b/goo/GooMutex.h
@@ -22,7 +22,7 @@
 // ...
 // gDestroyMutex(&m);

-#ifdef WIN32
+#ifdef _WIN32

 #include <windows.h>

See http://msdn.microsoft.com/en-us/library/b0084kay(VS.80).aspx
Comment 1 Albert Astals Cid 2009-10-01 15:43:18 UTC
If seems we use WIN32 instead of _WIN32 in lots of places, as it seems you have a proper windows test system can you please patch and test them all?
Comment 2 Kovid Goyal 2009-10-01 17:02:56 UTC
Created attachment 29989 [details] [review]
All instances of WIN32 (except cmake related) converted

Compiles and runs pdftohtml and pdftoppm correctly with Visual Studio 2008 (all dependencies also compiled with VS 2008)
Comment 4 Albert Astals Cid 2009-10-04 15:42:16 UTC
Patch commited


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.