diff options
author | Matteo Bernardini | 2021-04-08 19:35:50 +0200 |
---|---|---|
committer | Matteo Bernardini | 2021-04-08 19:35:50 +0200 |
commit | afc9e42772de8a69a6c2a028e98dc5ca8d96df52 (patch) | |
tree | 1005b4879f8fb6b3be051d8ac93d1b40220fbecd /system/xnp2/gcc6.patch | |
parent | a6bf666d73b4dccae0636e4ca04113d5953b956c (diff) | |
download | slackbuilds-2d14715f971a22b9a4c22db06955477bd153b298.tar.gz |
20210408.1 global branch merge.current-20210408.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)) |