diff options
author | Matteo Bernardini | 2018-10-13 14:03:53 +0200 |
---|---|---|
committer | Matteo Bernardini | 2018-10-13 14:03:53 +0200 |
commit | 90a1c3817bd979d30eef880f5cbbdab1fdc96b69 (patch) | |
tree | 1a33d8fc1b5d12da92df48dd63c822804617a5f2 /system/xnp2/gcc6.patch | |
parent | e508b015d1f32339a2049795d646af143139eb87 (diff) | |
download | slackbuilds-7424207a1aea64da50cbca581175c22ae9d72f22.tar.gz |
20181013.1 global branch merge.current-20181013.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)) |