Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / metadata / mono-route.h
index 8f7cf73c6c17ab1d3a22df6bccfa37ab22260c00..03d179d71c6874255c6ee9a1f64976f4089af9d2 100644 (file)
@@ -1,11 +1,15 @@
+/**
+ * \file
+ */
+
 #ifndef __MONO_ROUTE_H__
 #define __MONO_ROUTE_H__
 
-#if defined(PLATFORM_MACOSX) || defined(PLATFORM_BSD)
+#if defined(HOST_DARWIN) || defined(HOST_BSD)
 
 #include <sys/socket.h>
 
-#ifdef HOST_IOS
+#if defined (HOST_IOS) || defined (HOST_WATCHOS) || defined (HOST_APPLETVOS)
 // The iOS SDK does not provide the net/route.h header but using the Darwin version works fine.
 #include "../../support/ios/net/route.h"
 #else
 
 #include <mono/metadata/object-internals.h>
 
-in_addr_t gateway_from_rtm (struct rt_msghdr *rtm) MONO_INTERNAL;
+in_addr_t gateway_from_rtm (struct rt_msghdr *rtm);
 
 /* Category icalls */
-extern MonoBoolean ves_icall_System_Net_NetworkInformation_MacOsIPInterfaceProperties_ParseRouteInfo_internal (MonoString *iface, MonoArray **gw_addr_list) MONO_INTERNAL;
+extern MonoBoolean ves_icall_System_Net_NetworkInformation_MacOsIPInterfaceProperties_ParseRouteInfo_internal (MonoString *iface, MonoArray **gw_addr_list);
 
-#endif /* #if defined(PLATFORM_MACOSX) || defined(PLATFORM_BSD) */
+#endif /* #if defined(HOST_DARWIN) || defined(HOST_BSD) */
 #endif /* __MONO_ROUTE_H__ */