From 1df126f4e933e75ff064705bdce0dbf92645f63f Mon Sep 17 00:00:00 2001 From: AbelTian <2407223896@qq.com> Date: Fri, 12 Oct 2018 22:14:14 +0800 Subject: [PATCH] fix armhf building --- src/network/qqtwebaccessmanager.cpp | 4 ++-- src/network/qqtwebaccessmanager.h | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/network/qqtwebaccessmanager.cpp b/src/network/qqtwebaccessmanager.cpp index 4f3f1c99..f9abbc71 100644 --- a/src/network/qqtwebaccessmanager.cpp +++ b/src/network/qqtwebaccessmanager.cpp @@ -1,4 +1,4 @@ -#include "qqtwebaccessmanager.h" +#include "qqtwebaccessmanager.h" #include "qqtcore.h" @@ -418,7 +418,7 @@ QQtWebAccessSession* QQtWebAccessManager::sendCustomRequest ( const QNetworkRequ return session; } -#ifndef Q_OS_WIN +#if !defined( Q_OS_WIN ) && !defined( __EMBEDDED_LINUX__ ) QQtWebAccessSession* QQtWebAccessManager::sendCustomRequest ( const QNetworkRequest& request, const QByteArray& verb, const QByteArray& data ) diff --git a/src/network/qqtwebaccessmanager.h b/src/network/qqtwebaccessmanager.h index a663ce80..e9c907a0 100644 --- a/src/network/qqtwebaccessmanager.h +++ b/src/network/qqtwebaccessmanager.h @@ -1,4 +1,4 @@ -#ifndef QQTWEBWORKCLIENT_H +#ifndef QQTWEBWORKCLIENT_H #define QQTWEBWORKCLIENT_H #include @@ -241,7 +241,11 @@ public: QQtWebAccessSession* sendCustomRequest ( const QNetworkRequest& request, const QByteArray& verb, QIODevice* data = Q_NULLPTR ); -#ifndef Q_OS_WIN + //win没有这几个函数 + //arm下5.5.1没有 + + //linux macOS下有. +#if !defined( Q_OS_WIN ) && !defined( __EMBEDDED_LINUX__ ) QQtWebAccessSession* sendCustomRequest ( const QNetworkRequest& request, const QByteArray& verb, const QByteArray& data ); QQtWebAccessSession* sendCustomRequest ( const QNetworkRequest& request, const QByteArray& verb,