mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 17:58:37 +12: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 <QJsonDocument>
|
||||||
#include <QThread>
|
#include <QThread>
|
||||||
|
|
||||||
|
#define NOMINMAX
|
||||||
|
#ifndef CURL_STATICLIB
|
||||||
|
#define CURL_STATICLIB
|
||||||
|
#endif
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
LOG_CHANNEL(compat_log, "Compat");
|
LOG_CHANNEL(compat_log, "Compat");
|
||||||
|
|
||||||
constexpr auto qstr = QString::fromStdString;
|
constexpr auto qstr = QString::fromStdString;
|
||||||
|
|
|
@ -5,10 +5,6 @@
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QJsonObject>
|
#include <QJsonObject>
|
||||||
|
|
||||||
#define NOMINMAX
|
|
||||||
#define CURL_STATICLIB
|
|
||||||
#include <curl/curl.h>
|
|
||||||
|
|
||||||
class gui_settings;
|
class gui_settings;
|
||||||
class progress_dialog;
|
class progress_dialog;
|
||||||
|
|
||||||
|
@ -44,7 +40,7 @@ private:
|
||||||
std::atomic<bool> m_curl_result = false;
|
std::atomic<bool> m_curl_result = false;
|
||||||
std::atomic<bool> m_curl_abort = false;
|
std::atomic<bool> m_curl_abort = false;
|
||||||
double m_actual_dwnld_size = -1.0;
|
double m_actual_dwnld_size = -1.0;
|
||||||
CURL *m_curl = nullptr;
|
void* m_curl = nullptr;
|
||||||
QByteArray m_curl_buf;
|
QByteArray m_curl_buf;
|
||||||
progress_dialog* m_progress_dialog = nullptr;
|
progress_dialog* m_progress_dialog = nullptr;
|
||||||
std::shared_ptr<gui_settings> m_xgui_settings;
|
std::shared_ptr<gui_settings> m_xgui_settings;
|
||||||
|
|
|
@ -31,6 +31,11 @@
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef CURL_STATICLIB
|
||||||
|
#define CURL_STATICLIB
|
||||||
|
#endif
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
LOG_CHANNEL(update_log, "UPDATER");
|
LOG_CHANNEL(update_log, "UPDATER");
|
||||||
|
|
||||||
size_t curl_write_cb(char* ptr, size_t /*size*/, size_t nmemb, void* userdata)
|
size_t curl_write_cb(char* ptr, size_t /*size*/, size_t nmemb, void* userdata)
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#define NOMINMAX
|
|
||||||
#define CURL_STATICLIB
|
|
||||||
#include <curl/curl.h>
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QByteArray>
|
#include <QByteArray>
|
||||||
|
|
||||||
|
@ -21,7 +18,7 @@ private:
|
||||||
progress_dialog* m_progress_dialog = nullptr;
|
progress_dialog* m_progress_dialog = nullptr;
|
||||||
QWidget* m_parent = nullptr;
|
QWidget* m_parent = nullptr;
|
||||||
|
|
||||||
CURL *m_curl = nullptr;
|
void* m_curl = nullptr;
|
||||||
QByteArray m_curl_buf;
|
QByteArray m_curl_buf;
|
||||||
std::atomic<bool> m_curl_abort = false;
|
std::atomic<bool> m_curl_abort = false;
|
||||||
std::atomic<bool> m_curl_result = false;
|
std::atomic<bool> m_curl_result = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue