Skip to content

Commit

Permalink
Fixed up a few filters and made it clear that the type change for the…
Browse files Browse the repository at this point in the history
… user_data_key::key_type was a workaround for a known bug in Clang 3.3.
  • Loading branch information
mikebmcl committed Feb 11, 2014
1 parent 93f98fc commit a4eff92
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 5 additions & 5 deletions N3888_RefImpl/src/N3888_RefImpl.vcxproj.filters
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
Expand Down Expand Up @@ -164,16 +164,16 @@
<None Include="win32\DLLs\x86\Debug\cairo.pdb">
<Filter>DLLs</Filter>
</None>
<None Include="DLLs\x86\Debug\zlib1.dll">
<None Include="win32\DLLs\x86\Release\cairo.dll">
<Filter>DLLs</Filter>
</None>
<None Include="DLLs\x86\Debug\zlib1.pdb">
<None Include="win32\DLLs\x86\Debug\zlib1.dll">
<Filter>DLLs</Filter>
</None>
<None Include="DLLs\x86\Release\cairo.dll">
<None Include="win32\DLLs\x86\Release\zlib1.dll">
<Filter>DLLs</Filter>
</None>
<None Include="DLLs\x86\Release\zlib1.dll">
<None Include="win32\DLLs\x86\Debug\zlib1.pdb">
<Filter>DLLs</Filter>
</None>
</ItemGroup>
Expand Down
4 changes: 4 additions & 0 deletions N3888_RefImpl/src/drawing.h
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,11 @@ namespace std {

class user_data_key {
public:
#ifdef __clang__ // Workaround for Clang 3.3 not supporting 64-bit atomics on 32-bit GNU/Linux
typedef ::std::int_fast32_t key_type;
#else
typedef ::std::int_fast64_t key_type;
#endif
private:
static ::std::atomic<key_type> _Cnt;
key_type _Val;
Expand Down

0 comments on commit a4eff92

Please sign in to comment.