]> granicus.if.org Git - graphviz/commitdiff
apply fix suggested in b1786 for intptr_t on OpenBSD amd64
authorellson <devnull@localhost>
Tue, 13 Oct 2009 14:20:29 +0000 (14:20 +0000)
committerellson <devnull@localhost>
Tue, 13 Oct 2009 14:20:29 +0000 (14:20 +0000)
cmd/lefty/ws/x11/libfilereq/Draw.c

index 86d15343a2a005d149be083fe8d700450a208de4..c4c0e20a857af8757d3ce62537011069dde18287 100644 (file)
@@ -44,6 +44,7 @@
  */
 
 #include <stdio.h>
+#include <stdint.h>
 #include "SFinternal.h"
 #include "xstat.h"
 #include <X11/StringDefs.h>
 #endif
 #define ABS(x) (((x) < 0) ? (-(x)) : (x))
 
-#ifdef HAVE_INTPTR_T
-#define INT2PTR(t,v) ((t)(intptr_t)(v))
-#define PTR2INT(v) ((Sflong_t)(intptr_t)(v))
-#else
-#define INT2PTR(t,v) ((t)(v))
-#define PTR2INT(v) ((Sflong_t)(v))
-#endif
-
 typedef struct {
     char *fontname;
 } TextData, *textPtr;