pof
2016-06-14 21:23:13 UTC
Dear Jeroen,
I am using MSVC++2010.
Trying to compile 1.7.56, the compiler does not know about the function
_InterlockedExchangePointer(ptr,v).
The error appears in FXAtomic.cpp at line 397:
// Atomically set pointer variable at ptr to v, and return its old contents
FXptr atomicSet(volatile FXptr* ptr,FXptr v){
#if (defined(WIN32) && (_MSC_VER >= 1600))
// return _InterlockedExchangePointer(ptr,v); // Error line
Replacing this line with
return (FXptr)_InterlockedExchange((LONG*)ptr,(LONG)v);
seems to work.
Dose this look correct?
Regards
Pof
Message: 3
I am using MSVC++2010.
Trying to compile 1.7.56, the compiler does not know about the function
_InterlockedExchangePointer(ptr,v).
The error appears in FXAtomic.cpp at line 397:
// Atomically set pointer variable at ptr to v, and return its old contents
FXptr atomicSet(volatile FXptr* ptr,FXptr v){
#if (defined(WIN32) && (_MSC_VER >= 1600))
// return _InterlockedExchangePointer(ptr,v); // Error line
Replacing this line with
return (FXptr)_InterlockedExchange((LONG*)ptr,(LONG)v);
seems to work.
Dose this look correct?
Regards
Pof
Message: 3
Date: Mon, 23 May 2016 21:10:34 -0500
Subject: [Foxgui-users] Development Release 1.7.56
Content-Type: text/plain; charset=US-ASCII
- Removed quoted string length limitation in XML parser.
- Removed comment length limitation in XMP parser.
- Pass all text of processing instruction in one single callback from XML parser.
- XML declaration now only recognized if followed by whitespace.
- Updated Visual Studio 2008 project files to add enable intrinsics flags. This was causing problems compiling FXAtomic file.
- In FXAtomic, favor inlined x86 or x86-64 assembly over GCC builtins, due to spotty implementation of these primitives.
- Quoted string in XML could have newlines or blanks; adjusted parsing routine to not lose track of line and column
numbers while parsing over strings.
Enjoy!
-- JVZ
Subject: [Foxgui-users] Development Release 1.7.56
Content-Type: text/plain; charset=US-ASCII
- Removed quoted string length limitation in XML parser.
- Removed comment length limitation in XMP parser.
- Pass all text of processing instruction in one single callback from XML parser.
- XML declaration now only recognized if followed by whitespace.
- Updated Visual Studio 2008 project files to add enable intrinsics flags. This was causing problems compiling FXAtomic file.
- In FXAtomic, favor inlined x86 or x86-64 assembly over GCC builtins, due to spotty implementation of these primitives.
- Quoted string in XML could have newlines or blanks; adjusted parsing routine to not lose track of line and column
numbers while parsing over strings.
Enjoy!
-- JVZ