view common_osx.mm @ 142:46bf2a4a1fc8

* Don't try to use stdout and stderr as identifiers! In any case, one of them is stderr
author Chris Cannam
date Wed, 01 Dec 2010 11:50:04 +0000
parents 68aebc316898
children
line wrap: on
line source

#include "common.h"

#include <QString>

#ifdef Q_OS_MAC

#include <Foundation/Foundation.h>

QString getUserRealName()
{
    NSString *s = NSFullUserName();
    return QString::fromLocal8Bit([s UTF8String]);
}

#endif