"Fossies" - the Fresh Open Source Software Archive

Member "gawk-5.1.0/custom.h" (20 Mar 2020, 2966 Bytes) of package /linux/misc/gawk-5.1.0.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "custom.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 5.0.1_vs_5.1.0.

    1 /*
    2  * custom.h
    3  *
    4  * This file is for use on systems where Autoconf isn't quite able to
    5  * get things right. It is appended to the bottom of config.h by configure,
    6  * in order to override definitions from Autoconf that are erroneous. See
    7  * the manual for more information.
    8  *
    9  * If you make additions to this file for your system, please send me
   10  * the information, to arnold@skeeve.com.
   11  */
   12 
   13 /*
   14  * Copyright (C) 1995-2004, 2008, 2009, 2011, 2016, 2018, 2019, 2020,
   15  * the Free Software Foundation, Inc.
   16  *
   17  * This file is part of GAWK, the GNU implementation of the
   18  * AWK Programming Language.
   19  *
   20  * GAWK is free software; you can redistribute it and/or modify
   21  * it under the terms of the GNU General Public License as published by
   22  * the Free Software Foundation; either version 3 of the License, or
   23  * (at your option) any later version.
   24  *
   25  * GAWK is distributed in the hope that it will be useful,
   26  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   27  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   28  * GNU General Public License for more details.
   29  *
   30  * You should have received a copy of the GNU General Public License
   31  * along with this program; if not, write to the Free Software
   32  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
   33  */
   34 
   35 /* for VMS POSIX, from Pat Rankin, r.pat.rankin@gmail.com */
   36 #ifdef VMS_POSIX
   37 #undef VMS
   38 #include "vms/redirect.h"
   39 #endif
   40 
   41 /* OpenVMS has some definitions in fp.h that should be in math.h */
   42 /* From John Malmberg, wb8tyw@qsl.net */
   43 #ifdef __VMS
   44 #include <fp.h>
   45 /* isnan () macro is broken */
   46 #undef isnan
   47 /* VMS has POSIX confirming limits.h */
   48 #ifndef _REGEX_INCLUDE_LIMITS_H
   49 #define _REGEX_INCLUDE_LIMITS_H 1
   50 #endif
   51 #ifndef _GNU_SOURCE
   52 #define _GNU_SOURCE 1
   53 #endif /* _GNU_SOURCE */
   54 #ifndef SIZE_MAX
   55 #define SIZE_MAX (__UINT32_MAX)
   56 #endif /* SIZE_MAX */
   57 #define ULONG_WIDTH 32
   58 #ifndef __VAX
   59 #ifndef ULLONG_MAX
   60 #define ULLONG_MAX __UINT64_MAX
   61 #endif /* ULLONG_MAX */
   62 #endif /* __VAX */
   63 typedef char int_least8_t;
   64 typedef unsigned char uint_least8_t;
   65 typedef short int_least16_t;
   66 typedef unsigned short uint_least16_t;
   67 #ifndef __VAX
   68 typedef long long int_fast64_t;
   69 typedef unsigned long long uint_fast64_t;
   70 #endif /* __VAX */
   71 #endif /* __VMS */
   72 
   73 
   74 /* For QNX, based on submission from Michael Hunter, mphunter@qnx.com */
   75 #ifdef __QNX__
   76 #define GETPGRP_VOID    1
   77 #endif
   78 
   79 /* For MacOS X, which is almost BSD Unix */
   80 #ifdef __APPLE__
   81 #define HAVE_MKTIME 1
   82 #endif
   83 
   84 /* For HP/UX with gcc */
   85 #if defined(hpux) || defined(_HPUX_SOURCE)
   86 #undef HAVE_TZSET
   87 #define HAVE_TZSET 1
   88 #define _TZSET 1
   89 #endif
   90 
   91 #if defined(_AIX)
   92 #define _XOPEN_SOURCE_EXTENDED 1
   93 #endif
   94 
   95 /* Junk for dfa.[ch] */
   96 /* The __pure__ attribute was added in gcc 2.96.  */
   97 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
   98 # define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
   99 #else
  100 # define _GL_ATTRIBUTE_PURE /* empty */
  101 #endif
  102 
  103 #include "mbsupport.h" /* defines stuff for DJGPP to fake MBS */