aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-12-29 21:45:40 +0000
committerrsc <devnull@localhost>2005-12-29 21:45:40 +0000
commit0dbd8726fe2b94ae3be1d1403aa1732679570cb0 (patch)
tree0c9c672fe2d4e5f082d8324ff709b0d06c7ba916
parent3d484b0d1a2a49113683f40a66a7fc4c1bebcda1 (diff)
downloadplan9port-0dbd8726fe2b94ae3be1d1403aa1732679570cb0.tar.gz
plan9port-0dbd8726fe2b94ae3be1d1403aa1732679570cb0.tar.bz2
plan9port-0dbd8726fe2b94ae3be1d1403aa1732679570cb0.zip
add stdint.h, uintptr
-rw-r--r--src/lib9/fmt/plan9.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib9/fmt/plan9.h b/src/lib9/fmt/plan9.h
index f9762889..22fa7f0c 100644
--- a/src/lib9/fmt/plan9.h
+++ b/src/lib9/fmt/plan9.h
@@ -1,3 +1,5 @@
+#include <stdint.h>
+
/*
* compiler directive on Plan 9
*/
@@ -14,12 +16,15 @@
#define ulong _fmtulong
#define vlong _fmtvlong
#define uvlong _fmtuvlong
+#define uintptr _fmtuintptr
+
typedef unsigned char uchar;
typedef unsigned short ushort;
typedef unsigned int uint;
typedef unsigned long ulong;
typedef unsigned long long uvlong;
typedef long long vlong;
+typedef uintptr_t uintptr;
/*
* nil cannot be ((void*)0) on ANSI C,