| 1 |
/* |
| 2 |
* Copyright (C) 2005 Jonathan Day, Nikos Mavroyanopoulos |
| 3 |
* |
| 4 |
* This library is free software; you can redistribute it and/or modify it |
| 5 |
* under the terms of the GNU Library General Public License as published |
| 6 |
* by the Free Software Foundation; either version 2 of the License, or |
| 7 |
* (at your option) any later version. |
| 8 |
* |
| 9 |
* This library is distributed in the hope that it will be useful, |
| 10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 |
* Library General Public License for more details. |
| 13 |
* |
| 14 |
* You should have received a copy of the GNU Library General Public |
| 15 |
* License along with this library; if not, write to the |
| 16 |
* Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 17 |
* Boston, MA 02111-1307, USA. |
| 18 |
*/ |
| 19 |
|
| 20 |
|
| 21 |
/* |
| 22 |
* The function of this header is to make sure that all system-specific headers |
| 23 |
* files that are required are included. Eventually, system headers will only |
| 24 |
* be pulled in when local definitions don't exist or are suboptimal. |
| 25 |
* |
| 26 |
* For now, we're also defining MAXINT and MININT in here, as there are |
| 27 |
* reported problems with the way we're trying to find it. |
| 28 |
*/ |
| 29 |
|
| 30 |
#if !defined(__MINCLUDES_H) |
| 31 |
#define __MINCLUDES_H |
| 32 |
|
| 33 |
#if defined(MUTILS_USE_MHASH_CONFIG) |
| 34 |
#include <mutils/mhash_config.h> |
| 35 |
#endif |
| 36 |
|
| 37 |
#if defined(HAVE_LIMITS_H) |
| 38 |
#include <limits.h> |
| 39 |
#endif |
| 40 |
|
| 41 |
#if defined(HAVE_STDBOOL_H) |
| 42 |
#include <stdbool.h> |
| 43 |
#endif |
| 44 |
|
| 45 |
#if defined(HAVE_CTYPE_H) |
| 46 |
#include <ctype.h> |
| 47 |
#endif |
| 48 |
|
| 49 |
#if defined(HAVE_SYS_TYPES_H) |
| 50 |
#include <sys/types.h> |
| 51 |
#endif |
| 52 |
|
| 53 |
#if defined(HAVE_ASSERT_H) |
| 54 |
#include <assert.h> |
| 55 |
#endif |
| 56 |
|
| 57 |
#if defined(HAVE_STRINGS_H) |
| 58 |
#include <strings.h> |
| 59 |
#endif |
| 60 |
|
| 61 |
#if defined(HAVE_STRING_H) |
| 62 |
#include <string.h> |
| 63 |
#endif |
| 64 |
|
| 65 |
#if defined(HAVE_MALLOC_H) |
| 66 |
#include <malloc.h> |
| 67 |
#endif |
| 68 |
|
| 69 |
#if defined(HAVE_STDIO_H) |
| 70 |
#include <stdio.h> |
| 71 |
#endif |
| 72 |
|
| 73 |
#if defined(HAVE_STDLIB_H) |
| 74 |
#include <stdlib.h> |
| 75 |
#endif |
| 76 |
|
| 77 |
#if defined(HAVE_UNISTD_H) |
| 78 |
#include <unistd.h> |
| 79 |
#endif |
| 80 |
|
| 81 |
#if defined(HAVE_VALUES_H) |
| 82 |
#include <values.h> |
| 83 |
#endif |
| 84 |
|
| 85 |
#if defined(HAVE_SYS_MMAN_H) |
| 86 |
#include <sys/mman.h> |
| 87 |
#endif |
| 88 |
|
| 89 |
#if defined(HAVE_ERRNO_H) |
| 90 |
#include <errno.h> |
| 91 |
#endif |
| 92 |
|
| 93 |
#if defined(HAVE_ERROR_H) |
| 94 |
#include <error.h> |
| 95 |
#endif |
| 96 |
|
| 97 |
#if defined(HAVE_INTTYPES_H) |
| 98 |
#include <inttypes.h> |
| 99 |
#endif |
| 100 |
|
| 101 |
#if defined(HAVE_STDINT_H) |
| 102 |
#include <stdint.h> |
| 103 |
#endif |
| 104 |
|
| 105 |
#if !defined(INT_MAX) |
| 106 |
#define INT_MAX ((int) (~0U>>1)) |
| 107 |
#endif |
| 108 |
|
| 109 |
#if !defined(MAXINT) |
| 110 |
#define MAXINT INT_MAX |
| 111 |
#endif |
| 112 |
|
| 113 |
#if !defined(INT_MIN) |
| 114 |
#define INT_MIN (-INT_MAX - 1) |
| 115 |
#endif |
| 116 |
|
| 117 |
#if !defined(MININT) |
| 118 |
#define MININT INT_MIN |
| 119 |
#endif |
| 120 |
|
| 121 |
#endif |