diff --git a/src/QGCApplication.cc b/src/QGCApplication.cc index 7f8ada1507782c20de522fb29d876a85033f32ce..340c6a745deaec3b417184d008a5ff2f0ba9168a 100644 --- a/src/QGCApplication.cc +++ b/src/QGCApplication.cc @@ -132,12 +132,16 @@ static QObject* mavManagerSingletonFactory(QQmlEngine*, QJSEngine*) } #if defined(QGC_GST_STREAMING) +#ifdef Q_OS_MAC +#ifndef __ios__ static void qgcputenv(const QString& key, const QString& root, const QString& path) { QString value = root + path; qputenv(key.toStdString().c_str(), QByteArray(value.toStdString().c_str())); } #endif +#endif +#endif /** * @brief Constructor for the main application.