[vlc-commits] upnp: Use TARGET_OS_OSX to check for macOS

David Fuhrmann git at videolan.org
Wed May 22 19:25:16 CEST 2019


vlc/vlc-3.0 | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Wed May 22 19:12:10 2019 +0200| [3581f922b49553ca5b466822be6c4d5ac5a6d15a] | committer: David Fuhrmann

upnp: Use TARGET_OS_OSX to check for macOS

TARGET_OS_MAC is actually true when building for iPhone as well,
therefore not usable in this case.

backport of 0669e8a3393e0f3325a950ef444cdc2bacaf65ed

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=3581f922b49553ca5b466822be6c4d5ac5a6d15a
---

 modules/services_discovery/upnp.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/services_discovery/upnp.cpp b/modules/services_discovery/upnp.cpp
index 26152942ca..af036bda36 100644
--- a/modules/services_discovery/upnp.cpp
+++ b/modules/services_discovery/upnp.cpp
@@ -1546,7 +1546,7 @@ done:
 #include <TargetConditionals.h>
 #endif
 
-#if defined(TARGET_OS_MAC) && TARGET_OS_MAC
+#if defined(TARGET_OS_OSX) && TARGET_OS_OSX
 #include <CoreFoundation/CoreFoundation.h>
 #include <SystemConfiguration/SystemConfiguration.h>
 #include "vlc_charset.h"



More information about the vlc-commits mailing list