Hi Robert, A rather crude implementation could look something like this.
Best regards Björn ________________________________ Från: osg-users [osg-users-boun...@lists.openscenegraph.org] för Robert Osfield [robert.osfi...@gmail.com] Skickat: den 20 november 2014 15:04 Till: OpenSceneGraph Users Ämne: Re: [osg-users] Ambiguous defines in Atomic.cpp when compiling with MinGW and GCC Hi Bjorn, On 20 November 2014 12:02, Björn Blissing <bjorn.bliss...@vti.se<mailto:bjorn.bliss...@vti.se>> wrote: Hi Robert, Well, not really. My limited benchmarks did not show any performance differences. But in the current form the code will result in compiler errors, due to the fact that both _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS and _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED are defined. A simple solution would be to modify the CMake script so that these two cannot be defined simultaneously. And as you previously suggested to select the GCC-path when compiling with GCC under MinGW. Could you have a bash at this? Robert.
CheckAtomicOps.cmake
Description: CheckAtomicOps.cmake
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org