tv_rename/network.hpp
2019-06-01 21:54:45 +02:00

35 lines
411 B
C++

#ifndef NETWORK_HPP
#define NETWORK_HPP
#ifdef _WIN32
#include <WinInet.h>
#include <Windows.h>
using string = std::wstring;
#else
#include <curl/curl.h>
#include <string>
using string = std::string;
#endif
class Curl {
public:
Curl();
~Curl();
std::string execute( const string &url );
private:
#ifdef _WIN32
HINTERNET connect = nullptr;
#else
CURL *curl_handle;
#endif
};
#endif