#include <fstream>
#include <cstring>
-#ifndef WIN32
+#ifndef PLATFORM_WINDOWS
#include <sys/utsname.h>
#endif
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 WIN32
+#ifndef PLATFORM_WINDOWS
ping_call* cm = static_cast<ping_call*> (arg);
CURL* c;
struct utsname utb;
curl_easy_cleanup (c);
delete cm;
-#endif /* WIN32 */
+#endif /* PLATFORM_WINDOWS */
return 0;
}