f68cb727c2
retawq is an interactive, multi-threaded web browser for text terminals. It is written in C, fast, small, nicely configurable, and comfortable. The low-level network communications are performed in a non-blocking way, and you can keep open as many "virtual windows" as you want and work simultaneously in two of them in a split-screen mode. based on a port from Girish Venkatachalam feedback and ok merdely@
23 lines
784 B
Plaintext
23 lines
784 B
Plaintext
$OpenBSD: patch-stuff_h,v 1.1.1.1 2008/12/07 22:03:28 okan Exp $
|
|
--- stuff.h.orig Sun Mar 19 12:51:21 2006
|
|
+++ stuff.h Fri Nov 14 20:46:15 2008
|
|
@@ -133,6 +133,7 @@
|
|
#if HAVE_SYS_TYPES_H
|
|
#include <sys/types.h>
|
|
#endif
|
|
+#include <inttypes.h>
|
|
|
|
#if STDC_HEADERS
|
|
#include <stdlib.h>
|
|
@@ -894,8 +895,8 @@ typedef signed short tMbsIndex;
|
|
|
|
/* CHECKME: use a sizeof() test with configure to avoid (_bogus_!) compiler
|
|
warnings on 64-bit machines! */
|
|
-#define MY_INT_TO_POINTER(x) ( (void*) ((int) (x)) )
|
|
-#define MY_POINTER_TO_INT(x) ((int) (x))
|
|
+#define MY_INT_TO_POINTER(x) ( (void*) ((uintptr_t) (x)) )
|
|
+#define MY_POINTER_TO_INT(x) ((uintptr_t) (x))
|
|
|
|
/* Suppress _bogus_ compiler warnings about uninitialized variables (in order
|
|
to make all "real" warnings more visible): */
|