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

Marvin Scholz git at videolan.org
Wed May 22 02:40:40 CEST 2019


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Wed May 22 02:40:01 2019 +0200| [0669e8a3393e0f3325a950ef444cdc2bacaf65ed] | committer: Marvin Scholz

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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0669e8a3393e0f3325a950ef444cdc2bacaf65ed
---

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

diff --git a/modules/services_discovery/upnp-wrapper.hpp b/modules/services_discovery/upnp-wrapper.hpp
index c8b9ce57bb..3002599172 100644
--- a/modules/services_discovery/upnp-wrapper.hpp
+++ b/modules/services_discovery/upnp-wrapper.hpp
@@ -338,7 +338,7 @@ done:
 #include <TargetConditionals.h>
 #endif
 
-#if defined(TARGET_OS_MAC) && TARGET_OS_MAC
+#if defined(TARGET_OS_OSX) && TARGET_OS_OSX
 #include <SystemConfiguration/SystemConfiguration.h>
 #include "vlc_charset.h"
 



More information about the vlc-commits mailing list