diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-10-04 11:25:17 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-10-04 11:25:17 +0300 |
commit | ad122d8fe3acb4cde689f2995f8505eef73f0a35 (patch) | |
tree | e9f930c934fc6b32f902aa76b4d2859b0b55f21d /awk.h | |
parent | 588f4f5b2808c1b3cadff6c1c26c9b1d5c70b918 (diff) | |
parent | 2626d04d332dd87d4e6e9effe943dd6aa3d21cac (diff) | |
download | egawk-ad122d8fe3acb4cde689f2995f8505eef73f0a35.tar.gz egawk-ad122d8fe3acb4cde689f2995f8505eef73f0a35.tar.bz2 egawk-ad122d8fe3acb4cde689f2995f8505eef73f0a35.zip |
Merge branch 'master' into feature/cmake
Diffstat (limited to 'awk.h')
-rw-r--r-- | awk.h | 30 |
1 files changed, 6 insertions, 24 deletions
@@ -108,24 +108,12 @@ extern int errno; #undef CHARBITS #undef INTBITS -#if !defined(ZOS_USS) #if HAVE_INTTYPES_H # include <inttypes.h> #endif #if HAVE_STDINT_H # include <stdint.h> #endif -#else /* ZOS_USS */ -#include <limits.h> -#include <sys/time.h> -#define INT32_MAX INT_MAX -#define INT32_MIN INT_MIN -#ifndef __uint32_t -#define __uint32_t 1 -typedef unsigned long uint32_t; -#endif -typedef long int32_t; -#endif /* !ZOS_USS */ /* ----------------- System dependencies (with more includes) -----------*/ @@ -159,11 +147,10 @@ typedef int off_t; #ifdef NEED_MEMORY_H #include <memory.h> #endif /* NEED_MEMORY_H */ -#else /* not HAVE_STRING_H */ +#endif /* HAVE_STRING_H */ #ifdef HAVE_STRINGS_H #include <strings.h> #endif /* HAVE_STRINGS_H */ -#endif /* not HAVE_STRING_H */ #if HAVE_UNISTD_H #include <unistd.h> @@ -1679,6 +1666,11 @@ extern uintmax_t adjust_uint(uintmax_t n); #endif /* ! defined(VMS)) */ #endif /* WEXITSTATUS */ +/* For z/OS, from Dave Pitts. EXIT_FAILURE is normally 8, make it 1. */ +#if defined(EXIT_FAILURE) && EXIT_FAILURE == 8 +# undef EXIT_FAILURE +#endif + /* EXIT_SUCCESS and EXIT_FAILURE normally come from <stdlib.h> */ #ifndef EXIT_SUCCESS # define EXIT_SUCCESS 0 @@ -1691,16 +1683,6 @@ extern uintmax_t adjust_uint(uintmax_t n); # define EXIT_FATAL 2 #endif -/* For z/OS, from Dave Pitts. EXIT_FAILURE is normally 8, make it 1. */ -#ifdef ZOS_USS - -#ifdef EXIT_FAILURE -#undef EXIT_FAILURE -#endif - -#define EXIT_FAILURE 1 -#endif - /* ------------------ Inline Functions ------------------ */ /* |