Hi Bjorn, Thanks for the fix, looks reasonable, now merged and submitted to svn/trunk and OSG-3.2 branch.
Cheers, Robert. On 20 November 2014 20:31, Björn Blissing <[email protected]> wrote: > Hi Robert, > > A rather crude implementation could look something like this. > > Best regards > Björn > > ________________________________ > Från: osg-users [[email protected]] för Robert > Osfield [[email protected]] > 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 <[email protected]<mailto: > [email protected]>> 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. > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

