1 /* maaP.h -- Internal header file for libmaa 2 * Created: Sun Nov 19 13:19:44 1995 by faith@dict.org 3 * Copyright 1994-1998, 2002 Rickard E. Faith (faith@dict.org) 4 * Copyright 2002-2008 Aleksey Cheusov (vle@gmx.net) 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining 7 * a copy of this software and associated documentation files (the 8 * "Software"), to deal in the Software without restriction, including 9 * without limitation the rights to use, copy, modify, merge, publish, 10 * distribute, sublicense, and/or sell copies of the Software, and to 11 * permit persons to whom the Software is furnished to do so, subject to 12 * the following conditions: 13 * 14 * The above copyright notice and this permission notice shall be 15 * included in all copies or substantial portions of the Software. 16 * 17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 20 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 21 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 22 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 23 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 * 25 */ 26 27 #ifndef _MAAP_H_ 28 #define _MAAP_H_ 29 30 #include <sys/types.h> 31 #include <sys/time.h> 32 #include <unistd.h> 33 #include <stddef.h> 34 #include <stdlib.h> 35 #include <stdarg.h> 36 #include <stdint.h> 37 #include <string.h> 38 #include <inttypes.h> 39 #include <time.h> 40 #include <assert.h> 41 #include <limits.h> 42 #include <getopt.h> 43 44 #define __UNCONST(a) ((void *)(unsigned long)(const void *)(a)) 45 46 #if HAVE_HEADER_ALLOCA_H 47 # include <alloca.h> 48 #endif 49 50 #if !defined(SIZEOF_VOID_P) 51 # define SIZEOF_VOID_P sizeof(void *) 52 #endif 53 54 #if HAVE_HEADER_SYS_RESOURCE_H 55 # include <sys/resource.h> 56 #endif 57 58 /* Local stuff */ 59 #ifndef max 60 #define max(a,b) ((a)>(b)?(a):(b)) 61 #endif 62 63 #include "maa.h" 64 65 #endif 66