summaryrefslogtreecommitdiffstats
path: root/system/xnp2/gcc6.patch
diff options
context:
space:
mode:
author Matteo Bernardini2019-08-18 09:39:52 +0200
committer Matteo Bernardini2019-08-18 09:39:52 +0200
commit6b4dcc675fdfd2b11080d203d1807cbfab2ce79b (patch)
tree90a301b976acf4d029db86f7aec5dbb14034eae9 /system/xnp2/gcc6.patch
parentd04189e642ca17186cb9b2b5899fa9c12aceb782 (diff)
downloadslackbuilds-6b4dcc675fdfd2b11080d203d1807cbfab2ce79b.tar.gz
20190818.1 global branch merge.current-20190818.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/xnp2/gcc6.patch')
-rw-r--r--system/xnp2/gcc6.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/system/xnp2/gcc6.patch b/system/xnp2/gcc6.patch
new file mode 100644
index 0000000000..6265959666
--- /dev/null
+++ b/system/xnp2/gcc6.patch
@@ -0,0 +1,17 @@
+--- xnp2-0.86/x11/compiler.h.old 2016-03-08 18:25:50.000000000 +0100
++++ xnp2-0.86/x11/compiler.h 2016-07-05 23:48:04.507937827 +0200
+@@ -117,12 +117,14 @@
+ #define MAX_PATH MAXPATHLEN
+ #endif
+
++#ifndef __cplusplus
+ #ifndef max
+ #define max(a,b) (((a) > (b)) ? (a) : (b))
+ #endif
+ #ifndef min
+ #define min(a,b) (((a) < (b)) ? (a) : (b))
+ #endif
++#endif /* __cplusplus */
+
+ #ifndef ZeroMemory
+ #define ZeroMemory(d,n) memset((d), 0, (n))