Bug 515064: Check if _MSC_VER is defined before using it in a C
preprocessor conditional expression. The original code is correct, but some people or projects are compiling with MinGW and the -Wundef flag. It is less work to make this change than to debate with them. The patch is contributed by Guenter <gk@gknw.de>. r=wtc. git-svn-id: svn://10.0.0.236/trunk@258377 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
2f24cd07a9
commit
1e04101a00
@ -110,7 +110,8 @@ NSPR_API(PRInt32) PR_AtomicAdd(PRInt32 *ptr, PRInt32 val);
|
||||
** the macros and functions won't be compatible and can't be used
|
||||
** interchangeably.
|
||||
*/
|
||||
#if defined(_WIN32) && !defined(_WIN32_WCE) && (_MSC_VER >= 1310)
|
||||
#if defined(_WIN32) && !defined(_WIN32_WCE) && \
|
||||
defined(_MSC_VER) && (_MSC_VER >= 1310)
|
||||
|
||||
long __cdecl _InterlockedIncrement(long volatile *Addend);
|
||||
#pragma intrinsic(_InterlockedIncrement)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user