1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00

fix windows building

This commit is contained in:
tianduanrui 2018-04-03 20:53:47 +08:00
parent b5446c07d6
commit b8a6cccd3d
4 changed files with 15 additions and 3 deletions

View File

@ -8,7 +8,9 @@
#include "string.h" #include "string.h"
#include "stdlib.h" #include "stdlib.h"
__BEGIN_DECLS #ifdef __cplusplus
extern "C" {
#endif
typedef struct _wav_riff_t typedef struct _wav_riff_t
{ {
@ -65,7 +67,9 @@ int wav_read_data ( wav_t* wav, char* buffer, int buffer_size );
void wav_dump ( wav_t* wav ); void wav_dump ( wav_t* wav );
__END_DECLS #ifdef __cplusplus
}
#endif
/* /*
int strncasecmp ( char* s1, char* s2, register int n ) int strncasecmp ( char* s1, char* s2, register int n )

View File

@ -400,6 +400,8 @@ QQtWebAccessSession* QQtWebAccessManager::sendCustomRequest ( const QNetworkRequ
timer->start(); timer->start();
} }
#ifndef Q_OS_WIN
QQtWebAccessSession* QQtWebAccessManager::sendCustomRequest ( const QNetworkRequest& request, const QByteArray& verb, QQtWebAccessSession* QQtWebAccessManager::sendCustomRequest ( const QNetworkRequest& request, const QByteArray& verb,
const QByteArray& data ) const QByteArray& data )
{ {
@ -463,6 +465,7 @@ QQtWebAccessSession* QQtWebAccessManager::sendCustomRequest ( const QNetworkRequ
timer->start(); timer->start();
} }
#endif
void QQtWebAccessManager::finished ( QNetworkReply* reply ) void QQtWebAccessManager::finished ( QNetworkReply* reply )
{ {

View File

@ -234,10 +234,13 @@ public:
QQtWebAccessSession* sendDeleteResourceRequest ( const QNetworkRequest& request ); QQtWebAccessSession* sendDeleteResourceRequest ( const QNetworkRequest& request );
QQtWebAccessSession* sendCustomRequest ( const QNetworkRequest& request, const QByteArray& verb, QQtWebAccessSession* sendCustomRequest ( const QNetworkRequest& request, const QByteArray& verb,
QIODevice* data = Q_NULLPTR ); QIODevice* data = Q_NULLPTR );
#ifndef Q_OS_WIN
QQtWebAccessSession* sendCustomRequest ( const QNetworkRequest& request, const QByteArray& verb, QQtWebAccessSession* sendCustomRequest ( const QNetworkRequest& request, const QByteArray& verb,
const QByteArray& data ); const QByteArray& data );
QQtWebAccessSession* sendCustomRequest ( const QNetworkRequest& request, const QByteArray& verb, QQtWebAccessSession* sendCustomRequest ( const QNetworkRequest& request, const QByteArray& verb,
QHttpMultiPart* multiPart ); QHttpMultiPart* multiPart );
#endif
signals: signals:
void updateUploadProgress ( QQtWebAccessSession* session, qint64 bytesSent, qint64 bytesTotal ); void updateUploadProgress ( QQtWebAccessSession* session, qint64 bytesSent, qint64 bytesTotal );

View File

@ -100,7 +100,9 @@ build_pass:CONFIG(debug, debug|release) {
#CONFIG += debug_and_release #CONFIG += debug_and_release
#CONFIG += build_all #CONFIG += build_all
#if some bug occured, maybe this help me, close some warning #if some bug occured, maybe this help me, close some warning
CFLAGS = -Wno-unused-parameter -Wno-reorder -Wno-c++11-extensions -Wno-c++11-long-long -Wno-comment !win32{
CFLAGS = -Wno-unused-parameter -Wno-reorder -Wno-c++11-extensions -Wno-c++11-long-long -Wno-comment
}
QMAKE_CFLAGS += $${CFLAGS} QMAKE_CFLAGS += $${CFLAGS}
QMAKE_CXXFLAGS += $${CFLAGS} QMAKE_CXXFLAGS += $${CFLAGS}