]> Joshua Wise's Git repositories - netwatch.git/blobdiff - include/raw/stdint.h
SMRAM interface changes, and a few misc. header changes.
[netwatch.git] / include / raw / stdint.h
diff --git a/include/raw/stdint.h b/include/raw/stdint.h
new file mode 100644 (file)
index 0000000..dbe4222
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef _STDINT_H
+#define _STDINT_H
+
+#ifndef __i386__
+# ifndef __x86_64__
+#  error this stdint.h expects either __i386__ or __x86_64__ to be defined
+# endif
+#endif
+
+typedef signed char    int8_t;
+typedef unsigned char  uint8_t;
+
+typedef signed short   int16_t;
+typedef unsigned short uint16_t;
+
+typedef signed int     int32_t;
+typedef unsigned int   uint32_t;
+
+#ifdef __x86_64__
+typedef signed long    int64_t;
+typedef unsigned long  uint64_t;
+#else
+typedef signed long long       int64_t;
+typedef unsigned long long     uint64_t;
+#endif
+
+#endif
This page took 0.026843 seconds and 4 git commands to generate.