1 /*
2  * Copyright (C) 1999, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2011,
3  * 2012, 2013 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU libmatheval
6  *
7  * GNU libmatheval is free software: you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License as
9  * published by the Free Software Foundation, either version 3 of the
10  * License, or (at your option) any later version.
11  *
12  * GNU libmatheval is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with GNU libmatheval.  If not, see
19  * <http://www.gnu.org/licenses/>.
20  */
21 
22 #ifndef COMMON_H
23 #define COMMON_H 1
24 
25 #if HAVE_CONFIG_H
26 #include "config.h"
27 #endif
28 
29 #include <stdio.h>
30 
31 #if STDC_HEADERS
32 #include <stdlib.h>
33 #include <string.h>
34 #elif HAVE_STRINGS_H
35 #include <strings.h>
36 #endif
37 
38 #ifndef EXIT_SUCCESS
39 #define EXIT_SUCCESS  0
40 #define EXIT_FAILURE  1
41 #endif
42 
43 #ifndef FALSE
44 #define FALSE 0
45 #endif
46 
47 #ifndef TRUE
48 #define TRUE 1
49 #endif
50 
51 #include "xmalloc.h"
52 
53 #endif
54