about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/motif/Remove-unsupported-weak-refs-on-darwin.patch
blob: 801310ba41ce94347b70774ac5d022968f377f9f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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