Skip to content

Commit c55506d

Browse files
committed
Bug#18054042: MY_ATOMIC_* FUNCTIONS ALWAYS USE RW-LOCKS ON WINDOWS
Due to a typo (#ifdef _MSV_VER rather than #ifdef _MSC_VER), we always used our rw-lock backup implementation for my_atomic_* functions rather than the native Windows implementation. This patch fixes the typo so that we again use proper atomics on Windows.
1 parent 9884c7e commit c55506d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/atomic/nolock.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef ATOMIC_NOLOCK_INCLUDED
22
#define ATOMIC_NOLOCK_INCLUDED
33

4-
/* Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved. reserved.
4+
/* Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved. reserved.
55
reserved.
66
77
This program is free software; you can redistribute it and/or modify
@@ -27,7 +27,7 @@
2727
neither Visual C++ or gcc we still choose the Solaris
2828
implementation on Solaris (mainly for SunStudio compilers).
2929
*/
30-
# if defined(_MSV_VER)
30+
# if defined(_MSC_VER)
3131
# include "generic-msvc.h"
3232
# elif __GNUC__
3333
# if defined(HAVE_SOLARIS_ATOMIC)

0 commit comments

Comments
 (0)