X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fpingback.cc;h=8e4a32628d546585ec29896e9ea2b6832c67b32e;hb=5fef65538040fbac1b9edd1847a269aa925a49c9;hp=ccec81cba7a70164d93728cd5a36e21c7e97470f;hpb=fb313fb1741a04f270fff3703967df572ac4fc45;p=ardour.git diff --git a/gtk2_ardour/pingback.cc b/gtk2_ardour/pingback.cc index ccec81cba7..8e4a32628d 100644 --- a/gtk2_ardour/pingback.cc +++ b/gtk2_ardour/pingback.cc @@ -23,7 +23,7 @@ #include #include -#ifndef WIN32 +#ifndef PLATFORM_WINDOWS #include #endif @@ -42,6 +42,7 @@ 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) { @@ -61,6 +62,7 @@ curl_write_data (char *bufptr, size_t size, size_t nitems, void *ptr) return size * nitems; } +#endif struct ping_call { std::string version; @@ -73,7 +75,7 @@ struct ping_call { static void* _pingback (void *arg) { -#ifndef WIN32 +#ifndef PLATFORM_WINDOWS ping_call* cm = static_cast (arg); CURL* c; struct utsname utb; @@ -162,7 +164,7 @@ _pingback (void *arg) curl_easy_cleanup (c); delete cm; -#endif /* WIN32 */ +#endif /* PLATFORM_WINDOWS */ return 0; }