]> Joshua Wise's Git repositories - netwatch.git/blobdiff - include/minilib.h
Have a log console -- needs to be refactored
[netwatch.git] / include / minilib.h
diff --git a/include/minilib.h b/include/minilib.h
new file mode 100644 (file)
index 0000000..e0fc16b
--- /dev/null
@@ -0,0 +1,33 @@
+#ifndef __MINILIB_H
+#define __MINILIB_H
+
+#define MINILIB 1
+
+#ifndef __int8_t_defined
+# define __int8_t_defined
+typedef signed char             int8_t;
+typedef short int               int16_t;
+typedef int                     int32_t;
+# if __WORDSIZE == 64
+typedef long int                int64_t;
+# else
+__extension__
+typedef long long int           int64_t;
+# endif
+#endif
+
+/* Unsigned.  */
+typedef unsigned char           uint8_t;
+typedef unsigned short int      uint16_t;
+#ifndef __uint32_t_defined
+typedef unsigned int            uint32_t;
+# define __uint32_t_defined
+#endif
+#if __WORDSIZE == 64
+typedef unsigned long int       uint64_t;
+#else
+__extension__
+typedef unsigned long long int  uint64_t;
+#endif
+
+#endif
This page took 0.022746 seconds and 4 git commands to generate.