python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / xnp2 / patches / define_cplusplus.patch
blob3245b948d1bfeba6c2d95e97ade93a56ea20a74a
1 --- x11/compiler.h.old 2018-02-02 17:00:29.174895866 +0000
2 +++ x11/compiler.h 2018-02-02 17:00:41.199160781 +0000
3 @@ -117,12 +117,14 @@
4 #define MAX_PATH MAXPATHLEN
5 #endif
7 +#ifndef __cplusplus
8 #ifndef max
9 #define max(a,b) (((a) > (b)) ? (a) : (b))
10 #endif
11 #ifndef min
12 #define min(a,b) (((a) < (b)) ? (a) : (b))
13 #endif
14 +#endif /* __cplusplus */
16 #ifndef ZeroMemory
17 #define ZeroMemory(d,n) memset((d), 0, (n))