summaryrefslogtreecommitdiff
path: root/sd/source/ui/remotecontrol
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-03-04 21:55:46 +0100
committerMichael Stahl <mstahl@redhat.com>2015-03-05 15:36:47 +0100
commite9975ecffcd32abbffade50124e9935521043e6f (patch)
treec7ae05bd799a6d19911dec6c0c1cee9b9a0c89b6 /sd/source/ui/remotecontrol
parent8bb33cb289e02012985a8db9ab2dc21efcbcd24e (diff)
sal,sd: use newer InetPtonW API when not building for WinXP target
... i.e. decide based on target instead of SDK version. Change-Id: I225588d34f961c19e223ed9c1b9a934cd5196cf7
Diffstat (limited to 'sd/source/ui/remotecontrol')
-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 5cd9907ca4e3..32e9afb88f15 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()
-#ifdef _WIN32_WINNT_WINBLUE
+#if _WIN32_WINNT >= _WIN32_WINNT_VISTA
IN_ADDR addr;
OUString const saddr("239.0.0.1");
INT ret = InetPtonW(AF_INET, saddr.getStr(), & addr);