annotate common_osx.mm @ 366:ce4d06d87a39

Update deployment to handle the even more complicated situation in which we have to produce separate binaries for python 2.5 and 2.6-based systems (because we can't determine which extension to load otherwise, and they aren't compatible)
author Chris Cannam
date Wed, 23 Mar 2011 14:49:43 +0000
parents 68aebc316898
children
rev   line source
Chris@62 1
Chris@62 2 #include "common.h"
Chris@62 3
Chris@62 4 #include <QString>
Chris@62 5
Chris@62 6 #ifdef Q_OS_MAC
Chris@62 7
Chris@62 8 #include <Foundation/Foundation.h>
Chris@62 9
Chris@62 10 QString getUserRealName()
Chris@62 11 {
Chris@62 12 NSString *s = NSFullUserName();
Chris@62 13 return QString::fromLocal8Bit([s UTF8String]);
Chris@62 14 }
Chris@62 15
Chris@62 16 #endif