mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 12:05:23 +00:00
CURL_STATICLIB macro cleanup
Also move includes from headers. CURL is just void.
This commit is contained in:
parent
e606130262
commit
5261886449
4 changed files with 14 additions and 10 deletions
|
@ -7,6 +7,12 @@
|
|||
#include <QJsonDocument>
|
||||
#include <QThread>
|
||||
|
||||
#define NOMINMAX
|
||||
#ifndef CURL_STATICLIB
|
||||
#define CURL_STATICLIB
|
||||
#endif
|
||||
#include <curl/curl.h>
|
||||
|
||||
LOG_CHANNEL(compat_log, "Compat");
|
||||
|
||||
constexpr auto qstr = QString::fromStdString;
|
||||
|
@ -69,7 +75,7 @@ size_t game_compatibility::update_buffer(char* data, size_t size)
|
|||
}
|
||||
|
||||
Q_EMIT signal_buffer_update(static_cast<int>(new_size), max);
|
||||
|
||||
|
||||
return size;
|
||||
}
|
||||
|
||||
|
|
|
@ -5,10 +5,6 @@
|
|||
#include <QPainter>
|
||||
#include <QJsonObject>
|
||||
|
||||
#define NOMINMAX
|
||||
#define CURL_STATICLIB
|
||||
#include <curl/curl.h>
|
||||
|
||||
class gui_settings;
|
||||
class progress_dialog;
|
||||
|
||||
|
@ -44,7 +40,7 @@ private:
|
|||
std::atomic<bool> m_curl_result = false;
|
||||
std::atomic<bool> m_curl_abort = false;
|
||||
double m_actual_dwnld_size = -1.0;
|
||||
CURL *m_curl = nullptr;
|
||||
void* m_curl = nullptr;
|
||||
QByteArray m_curl_buf;
|
||||
progress_dialog* m_progress_dialog = nullptr;
|
||||
std::shared_ptr<gui_settings> m_xgui_settings;
|
||||
|
|
|
@ -31,6 +31,11 @@
|
|||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#ifndef CURL_STATICLIB
|
||||
#define CURL_STATICLIB
|
||||
#endif
|
||||
#include <curl/curl.h>
|
||||
|
||||
LOG_CHANNEL(update_log, "UPDATER");
|
||||
|
||||
size_t curl_write_cb(char* ptr, size_t /*size*/, size_t nmemb, void* userdata)
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include "stdafx.h"
|
||||
#define NOMINMAX
|
||||
#define CURL_STATICLIB
|
||||
#include <curl/curl.h>
|
||||
#include <QObject>
|
||||
#include <QByteArray>
|
||||
|
||||
|
@ -21,7 +18,7 @@ private:
|
|||
progress_dialog* m_progress_dialog = nullptr;
|
||||
QWidget* m_parent = nullptr;
|
||||
|
||||
CURL *m_curl = nullptr;
|
||||
void* m_curl = nullptr;
|
||||
QByteArray m_curl_buf;
|
||||
std::atomic<bool> m_curl_abort = false;
|
||||
std::atomic<bool> m_curl_result = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue