[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [52072] trunk/blender/intern/ghost/intern/ GHOST_NDOFManagerCocoa.mm: OSX/ndof: test link whole framework weak rather than single functions to fix clang compile issue
jens verwiebe
info at jensverwiebe.de
Sat Nov 10 14:53:02 CET 2012
Revision: 52072
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=52072
Author: jensverwiebe
Date: 2012-11-10 13:53:02 +0000 (Sat, 10 Nov 2012)
Log Message:
-----------
OSX/ndof: test link whole framework weak rather than single functions to fix clang compile issue
Modified Paths:
--------------
trunk/blender/intern/ghost/intern/GHOST_NDOFManagerCocoa.mm
Modified: trunk/blender/intern/ghost/intern/GHOST_NDOFManagerCocoa.mm
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_NDOFManagerCocoa.mm 2012-11-10 13:50:28 UTC (rev 52071)
+++ trunk/blender/intern/ghost/intern/GHOST_NDOFManagerCocoa.mm 2012-11-10 13:53:02 UTC (rev 52072)
@@ -168,7 +168,7 @@
extern "C" {
bool GHOST_NDOFManagerCocoa::available()
{
- extern OSErr InstallConnexionHandlers() __attribute__((weak_import));
+ extern OSErr InstallConnexionHandlers(); // (testing whole framework weak) __attribute__((weak_import));
// Make the linker happy for the framework check (see link below for more info)
// http://developer.apple.com/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/WeakLinking.html
return InstallConnexionHandlers != NULL;
@@ -177,7 +177,7 @@
bool GHOST_NDOFManagerCocoa::oldDRV()
{
- extern OSErr SetConnexionClientButtonMask() __attribute__((weak_import));
+ extern OSErr SetConnexionClientButtonMask(); // (testing whole framework weak) __attribute__((weak_import));
// Make the linker happy for the framework check (see link below for more info)
// http://developer.apple.com/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/WeakLinking.html
return SetConnexionClientButtonMask != NULL;
More information about the Bf-blender-cvs
mailing list