Patch #1292 ยป xp-target.patch
include/exiv2/rwlock.hpp (working copy) | ||
---|---|---|
30 | 30 | |
31 | 31 |
namespace Exiv2 { |
32 | 32 |
#ifdef _MSC_VER |
33 |
// Visual Studio 2013 and later use SRWLOCK |
|
34 |
#if _MSC_VER >= 1800 |
|
33 |
/* |
|
34 |
Visual Studio 2013 and later use SRWLOCK, however don't use Vista/7+ features |
|
35 |
when targeting XP. |
|
36 | ||
37 |
_USING_V110_SDK71_ is defined when Platform Toolset is set to target XP (and |
|
38 |
thus uses Windows 7.1 SDK). |
|
39 | ||
40 |
_ATL_XP_TARGETING can be used if you want to target XP but also want to use |
|
41 |
a newer SDK, such as 8. |
|
42 |
*/ |
|
43 |
#if _MSC_VER >= 1800 \ |
|
44 |
&& !(defined(_USING_V110_SDK71_) || defined(_ATL_XP_TARGETING)) |
|
35 | 45 |
/*! |
36 | 46 |
@brief Class to provide a Read-Write Lock |
37 | 47 |
*/ |
... | ... | |
85 | 95 |
/*! |
86 | 96 |
@brief Class to provide a Read-Write Lock |
87 | 97 |
*/ |
88 |
// Visual Studio 2005,8,10,12 use CRITICAL_SECTION |
|
98 |
// Visual Studio 2005,8,10,12 and XP targets use CRITICAL_SECTION
|
|
89 | 99 |
class RWLock |
90 | 100 |
{ |
91 | 101 |
public: |