aboutsummaryrefslogtreecommitdiffstats
path: root/sdk/std/types.h
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2025-01-14 16:06:02 -0600
committerWilliam Harrington <kb0iic@berzerkula.org>2025-01-14 16:06:02 -0600
commit0cc9b20c15460213e488bf5e70963b941482f628 (patch)
treebb0143245583ec846630f39bfa2258dba640ccd7 /sdk/std/types.h
parent0e084ade5069756d487b5c948c48b777e37c00c9 (diff)
Add source.
Diffstat (limited to 'sdk/std/types.h')
-rw-r--r--sdk/std/types.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/sdk/std/types.h b/sdk/std/types.h
new file mode 100644
index 0000000..ebd4ea7
--- /dev/null
+++ b/sdk/std/types.h
@@ -0,0 +1,54 @@
+/*
+ * Portable common datatype declarations.
+ * $Id$
+ * Copyright (c) 1997 by Tycho Softworks.
+ * For conditions of distribution and reuse see product license.
+ */
+
+#ifndef __STD_TYPES_H__
+#define __STD_TYPES_H__
+
+#ifndef __CONFIG_H__
+#include <config.h>
+#endif
+
+#include <sys/types.h>
+#include <stdlib.h>
+
+#ifdef UCHAR_T_MISSING
+typedef unsigned char uchar;
+#endif
+
+#ifdef USHORT_T_MISSING
+typedef unsigned short ushort;
+#endif
+
+#ifdef ULONG_T_MISSING
+typedef unsigned long ulong;
+#endif
+
+#ifdef __cplusplus
+enum
+{
+ FALSE=0,
+ TRUE
+};
+#else
+typedef enum
+{
+ FALSE=0,
+ TRUE
+} bool;
+#endif
+
+typedef void *ptr_t;
+
+#ifdef SIZE_T_MISSING
+typedef unsigned int size_t;
+#endif
+
+#ifdef SSIZE_T_MISSING
+typedef int ssize_t;
+#endif
+
+#endif