TaPAS  0.2
genepi-common.h
1 /*
2  * genepi-common.h -- Common macros
3  *
4  * This file is a part of the GENEric Presburger programming Interface.
5  *
6  * Copyright (C) 2010 CNRS UMR 5800 & Université Bordeaux I (see AUTHORS file).
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21  * 02110-1301 USA
22  */
23 
24 #ifndef __GENEPI_COMMON_H__
25 # define __GENEPI_COMMON_H__
26 
27 # include <tapas-config.h>
28 # include <stdio.h>
29 
30 # if TAPAS_HAVE_STRING_H
31 # include <string.h>
32 # endif /* TAPAS_HAVE_STRING_H */
33 
34 # if TAPAS_HAVE_STDLIB_H
35 # include <stdlib.h>
36 # endif /* TAPAS_HAVE_STDLIB_H */
37 
38 #ifdef TAPAS_HAVE_INTTYPES_H
39 # include <inttypes.h>
40 #endif
41 
42 #ifdef TAPAS_HAVE_STDINT_H
43 # include <stdint.h>
44 #endif
45 
46 #ifdef TAPAS_HAVE_UNISTD_H
47 # include <unistd.h>
48 #endif
49 
50 # ifndef BEGIN_C_DECLS
51 # ifdef __cplusplus
52 # define BEGIN_C_DECLS extern "C" {
53 # define END_C_DECLS }
54 # else /* ! __cpluplus */
55 # define BEGIN_C_DECLS
56 # define END_C_DECLS
57 # endif /* ! __cpluplus */
58 # endif /* ! BEGIN_C_DECLS */
59 
60 #endif /* ! __GENEPI_COMMON_H__ */