diff options
author | Matteo Bernardini | 2018-06-28 15:01:11 +0200 |
---|---|---|
committer | Matteo Bernardini | 2018-06-28 15:01:11 +0200 |
commit | d0c77ec2589d77ecc942b08aee394f5c6bf55959 (patch) | |
tree | 0fdf7a13032cdcf3909880aa9215b4c6e9bea99b /system/xnp2/gcc6.patch | |
parent | 31ffa0993a78202724c2a79363e4831623be7fcf (diff) | |
download | slackbuilds-current-20180628.1.tar.gz |
20180628.1 global branch merge.current-20180628.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/xnp2/gcc6.patch')
-rw-r--r-- | system/xnp2/gcc6.patch | 17 |
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)) |