summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/remotecontrol/DiscoveryService.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/remotecontrol/DiscoveryService.cxx b/sd/source/ui/remotecontrol/DiscoveryService.cxx
index 32e9afb88f15..9ce33ae98e47 100644
--- a/sd/source/ui/remotecontrol/DiscoveryService.cxx
+++ b/sd/source/ui/remotecontrol/DiscoveryService.cxx
@@ -123,7 +123,7 @@ void DiscoveryService::setupSockets()
struct ip_mreq multicastRequest;
// the Win32 SDK 8.1 deprecates inet_addr()
-#if _WIN32_WINNT >= _WIN32_WINNT_VISTA
+#if defined(_WIN32_WINNT) && _WIN32_WINNT >= _WIN32_WINNT_VISTA
IN_ADDR addr;
OUString const saddr("239.0.0.1");
INT ret = InetPtonW(AF_INET, saddr.getStr(), & addr);