pkgsrc/graphics/osg/patches/patch-include_OpenThreads_Atomic

16 lines
703 B
Text
Raw Normal View History

Changes 3.0.1: * OpenGL ES 1.1, and OpenGL ES 2.0 support * OpenGL 3.x and 4.x support along with associated OpenGL extensions * Supoort for Android on tablets and phones * Support for IOS on tablets and phones (end users applications have already been accepted on the App Store) * Introduction of Present3D application for immersive 3D presentations * New extensible serializers that provide new .osgb binary, .osgt ascii and .osgx xml file native formats * New generalized serializable metadata architecture * New osgQt library that makes it straight forward to integrate !OpenSceneGraph with Qt, including web browsing via QWebKit. * New FBX plugin based on the Audodesk FBX DSK that enables reading of the the .fbx 3D authoring and interchange format * New directshow plugin for handling movies under Windows * New pov plugin for exporting a scene to POV-Ray format, enabling use of POV-Ray to do photo-realistic ray tracing * New ply plugin for reading ply files * Improvements to osgText that enable bevelling of 3D text and highter quality 2D fonts * Improvements to osgVolume enabling high quality ray traced volume rendering * Improvements to osgManipulator making it more flexible * Improvements to osgParticle to support shader based particle effects * Revamped 3ds plugin for reading and writing of .3ds files * Revamped dxf plugin for reading and writing of .dxf files * Support for Cocoa and 64bit OSX build * Improved thread safety and efficiency of database paging * New Texture and buffer object pools for efficiently managing GL object resources
2012-03-07 17:27:35 +01:00
$NetBSD: patch-include_OpenThreads_Atomic,v 1.1 2012/03/07 16:27:35 adam Exp $
Fix C error.
--- include/OpenThreads/Atomic.orig 2012-03-06 16:27:45.000000000 +0000
+++ include/OpenThreads/Atomic
@@ -241,7 +241,7 @@ _OPENTHREADS_ATOMIC_INLINE bool
AtomicPtr::assign(void* ptrNew, const void* const ptrOld)
{
#if defined(_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS)
- return __sync_bool_compare_and_swap(&_ptr, ptrOld, ptrNew);
+ return __sync_bool_compare_and_swap(&_ptr, (void *)ptrOld, ptrNew);
#elif defined(_OPENTHREADS_ATOMIC_USE_MIPOSPRO_BUILTINS)
return __compare_and_swap((unsigned long*)&_ptr, (unsigned long)ptrOld, (unsigned long)ptrNew);
#elif defined(_OPENTHREADS_ATOMIC_USE_SUN)