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:
parent
b5446c07d6
commit
b8a6cccd3d
@ -8,7 +8,9 @@
|
||||
#include "string.h"
|
||||
#include "stdlib.h"
|
||||
|
||||
__BEGIN_DECLS
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
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 );
|
||||
|
||||
|
||||
__END_DECLS
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
int strncasecmp ( char* s1, char* s2, register int n )
|
||||
|
@ -400,6 +400,8 @@ QQtWebAccessSession* QQtWebAccessManager::sendCustomRequest ( const QNetworkRequ
|
||||
timer->start();
|
||||
}
|
||||
|
||||
#ifndef Q_OS_WIN
|
||||
|
||||
QQtWebAccessSession* QQtWebAccessManager::sendCustomRequest ( const QNetworkRequest& request, const QByteArray& verb,
|
||||
const QByteArray& data )
|
||||
{
|
||||
@ -463,6 +465,7 @@ QQtWebAccessSession* QQtWebAccessManager::sendCustomRequest ( const QNetworkRequ
|
||||
|
||||
timer->start();
|
||||
}
|
||||
#endif
|
||||
|
||||
void QQtWebAccessManager::finished ( QNetworkReply* reply )
|
||||
{
|
||||
|
@ -234,10 +234,13 @@ public:
|
||||
QQtWebAccessSession* sendDeleteResourceRequest ( const QNetworkRequest& request );
|
||||
QQtWebAccessSession* sendCustomRequest ( const QNetworkRequest& request, const QByteArray& verb,
|
||||
QIODevice* data = Q_NULLPTR );
|
||||
|
||||
#ifndef Q_OS_WIN
|
||||
QQtWebAccessSession* sendCustomRequest ( const QNetworkRequest& request, const QByteArray& verb,
|
||||
const QByteArray& data );
|
||||
QQtWebAccessSession* sendCustomRequest ( const QNetworkRequest& request, const QByteArray& verb,
|
||||
QHttpMultiPart* multiPart );
|
||||
#endif
|
||||
|
||||
signals:
|
||||
void updateUploadProgress ( QQtWebAccessSession* session, qint64 bytesSent, qint64 bytesTotal );
|
||||
|
@ -100,7 +100,9 @@ build_pass:CONFIG(debug, debug|release) {
|
||||
#CONFIG += debug_and_release
|
||||
#CONFIG += build_all
|
||||
#if some bug occured, maybe this help me, close some warning
|
||||
!win32{
|
||||
CFLAGS = -Wno-unused-parameter -Wno-reorder -Wno-c++11-extensions -Wno-c++11-long-long -Wno-comment
|
||||
}
|
||||
QMAKE_CFLAGS += $${CFLAGS}
|
||||
QMAKE_CXXFLAGS += $${CFLAGS}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user