motif: Add darwin support

This commit is contained in:
Josef Kemetmueller
2016-07-31 20:21:24 +02:00
parent 2f32588a8f
commit ee16dba630
5 changed files with 60 additions and 11 deletions
@@ -0,0 +1,12 @@
--- a/lib/Xm/XmP.h
+++ b/lib/Xm/XmP.h
@@ -1437,7 +1437,7 @@ extern void _XmDestroyParentCallback(
#endif /* NO_XM_1_2_BC */
-#if __GNUC__
+#if __GNUC__ && ! __APPLE__
# define XM_DEPRECATED __attribute__((__deprecated__))
# define XM_ALIAS(sym) __attribute__((__weak__,alias(#sym)))
#else