summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--subsurface-configure.pri3
-rw-r--r--subsurfacesysinfo.cpp21
2 files changed, 8 insertions, 16 deletions
diff --git a/subsurface-configure.pri b/subsurface-configure.pri
index b87e5b241..b147eba21 100644
--- a/subsurface-configure.pri
+++ b/subsurface-configure.pri
@@ -168,6 +168,9 @@ win32 {
LIBS += -lwsock32
DEFINES -= UNICODE
}
+mac {
+ LIBS += -framework CoreServices
+}
#
# misc
diff --git a/subsurfacesysinfo.cpp b/subsurfacesysinfo.cpp
index 5d556c6fc..9855af819 100644
--- a/subsurfacesysinfo.cpp
+++ b/subsurfacesysinfo.cpp
@@ -6,6 +6,11 @@
#include <sys/utsname.h>
#endif
+#ifdef __APPLE__
+#include <MacTypes.h>
+#include <CoreServices/CoreServices.h>
+#endif
+
// main part: processor type
#if defined(Q_PROCESSOR_ALPHA)
# define ARCH_PROCESSOR "alpha"
@@ -80,22 +85,6 @@
#if defined(Q_OS_OSX)
-Q_CORE_EXPORT OSErr qt_mac_create_fsref(const QString &file, FSRef *fsref)
-{
- return FSPathMakeRef(reinterpret_cast<const UInt8 *>(file.toUtf8().constData()), fsref, 0);
-}
-
-Q_CORE_EXPORT void qt_mac_to_pascal_string(QString s, Str255 str, TextEncoding encoding=0, int len=-1)
-{
- Q_UNUSED(encoding);
- Q_UNUSED(len);
- CFStringGetPascalString(QCFString(s), str, 256, CFStringGetSystemEncoding());
-}
-
-Q_CORE_EXPORT QString qt_mac_from_pascal_string(const Str255 pstr) {
- return QCFString(CFStringCreateWithPascalString(0, pstr, CFStringGetSystemEncoding()));
-}
-
SubsurfaceSysInfo::MacVersion SubsurfaceSysInfo::macVersion()
{
#if defined(Q_OS_OSX)