ref: 2ad858a3ea07af04c3a897148238954fae923e80
parent: 3f419d1cd08268c49a442a85d9286441b620fcb4
author: khm <devnull@localhost>
date: Sat Feb 27 21:48:14 EST 2016
x11: work around incompatible libc types musl uses unsigned long and glibc uses unsigned long int. undefine before we include the system x11 noise, then put things back where we found them.
--- a/gui-x11/x11.c
+++ b/gui-x11/x11.c
@@ -15,6 +15,7 @@
typedef struct Cursor Cursor;
#undef long
+#undef ulong
#define Font XFont
#define Screen XScreen
#define Display XDisplay
@@ -33,6 +34,7 @@
#undef Display
#undef Cursor
#define long int
+#define ulong p9_ulong
/* perfect approximation to NTSC = .299r+.587g+.114b when 0 ≤ r,g,b < 256 */
#define RGB2K(r,g,b) ((156763*(r)+307758*(g)+59769*(b))>>19)