summaryrefslogtreecommitdiffstats
path: root/contrib/awk/missing.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/awk/missing.c')
-rw-r--r--contrib/awk/missing.c59
1 files changed, 59 insertions, 0 deletions
diff --git a/contrib/awk/missing.c b/contrib/awk/missing.c
new file mode 100644
index 0000000..7494d76
--- /dev/null
+++ b/contrib/awk/missing.c
@@ -0,0 +1,59 @@
+/*
+ * Do all necessary includes here, so that we don't have to worry about
+ * overlapping includes in the files in missing.d.
+ */
+#include "awk.h"
+
+
+#ifdef atarist
+/*
+ * this will work with gcc compiler - for other compilers you may
+ * have to replace path separators in this file into backslashes
+ */
+#include "atari/stack.c"
+#include "atari/tmpnam.c"
+#endif /* atarist */
+
+#ifndef HAVE_SYSTEM
+#ifdef atarist
+#include "atari/system.c"
+#else
+#include "missing/system.c"
+#endif
+#endif /* HAVE_SYSTEM */
+
+#ifndef HAVE_MEMCMP
+#include "missing/memcmp.c"
+#endif /* HAVE_MEMCMP */
+
+#ifndef HAVE_MEMCPY
+#include "missing/memcpy.c"
+#endif /* HAVE_MEMCPY */
+
+#ifndef HAVE_MEMSET
+#include "missing/memset.c"
+#endif /* HAVE_MEMSET */
+
+#ifndef HAVE_STRNCASECMP
+#include "missing/strncasecmp.c"
+#endif /* HAVE_STRCASE */
+
+#ifndef HAVE_STRERROR
+#include "missing/strerror.c"
+#endif /* HAVE_STRERROR */
+
+#ifndef HAVE_STRFTIME
+#include "missing/strftime.c"
+#endif /* HAVE_STRFTIME */
+
+#ifndef HAVE_STRCHR
+#include "missing/strchr.c"
+#endif /* HAVE_STRCHR */
+
+#ifndef HAVE_STRTOD
+#include "missing/strtod.c"
+#endif /* HAVE_STRTOD */
+
+#ifndef HAVE_TZSET
+#include "missing/tzset.c"
+#endif /* HAVE_TZSET */
OpenPOWER on IntegriCloud