Mercurial > hg > easyhg
annotate src/common_osx.mm @ 372:2d3f1e5d8638
OS/X build fixes, for now slightly simpler (conceptually) situation in which we have a single bundle with two Python extension distributions in it, one for each active Python version
| author | Chris Cannam |
|---|---|
| date | Thu, 24 Mar 2011 13:15:49 +0000 |
| parents | common_osx.mm@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 |
