diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-11-13 16:48:12 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-11-13 16:56:20 +0100 |
commit | 10a5a1511127fbc6fb1e13323ab6a77f77311747 (patch) | |
tree | 0e1b84e418f9a85b82a438e90a19a5acaa879240 /external | |
parent | b3a6a93abb26e2c1ba987ed7dcd42923f2ef63ba (diff) |
Work around InterlockedExchange not exported from kernel32.dll on x64
...as reported in a comment on <http://msdn.microsoft.com/en-us/library/windows/
desktop/ms683590%28v=vs.85%29.aspx> "InterlockedExchange function"
Change-Id: Ie71edd7a5ce8ff3c922d607e174a4c4d43c08c1d
Diffstat (limited to 'external')
-rw-r--r-- | external/nss/nss.windows.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/external/nss/nss.windows.patch b/external/nss/nss.windows.patch index e94b3dd69863..9464bb1ce090 100644 --- a/external/nss/nss.windows.patch +++ b/external/nss/nss.windows.patch @@ -20,3 +20,14 @@ $(OBJDIR)/$(PROG_PREFIX)%$(OBJ_SUFFIX): %.c @$(MAKE_OBJDIR) +--- a/a/nspr/pr/include/md/_win95.h ++++ b/b/nspr/pr/include/md/_win95.h +@@ -312,7 +312,7 @@ + #define _MD_ATOMIC_ADD(ptr,val) (InterlockedExchangeAdd((PLONG)ptr, (LONG)val) + val) + #define _MD_ATOMIC_DECREMENT(x) InterlockedDecrement((PLONG)x) + #endif /* x86 */ +-#define _MD_ATOMIC_SET(x,y) InterlockedExchange((PLONG)x, (LONG)y) ++#define _MD_ATOMIC_SET(x,y) _InterlockedExchange((PLONG)x, (LONG)y) + + #define _MD_INIT_IO _PR_MD_INIT_IO + |