#include <fstream>
#include <cstring>
+#ifndef PLATFORM_WINDOWS
#include <sys/utsname.h>
+#endif
+
#include <curl/curl.h>
#include <glibmm/miscutils.h>
using std::string;
using namespace ARDOUR;
+#ifndef PLATFORM_WINDOWS // no pingback for windows, so far
static size_t
curl_write_data (char *bufptr, size_t size, size_t nitems, void *ptr)
{
return size * nitems;
}
+#endif
struct ping_call {
std::string version;
static void*
_pingback (void *arg)
{
+#ifndef PLATFORM_WINDOWS
ping_call* cm = static_cast<ping_call*> (arg);
CURL* c;
struct utsname utb;
curl_easy_cleanup (c);
delete cm;
+#endif /* PLATFORM_WINDOWS */
+
return 0;
}