cartobase  4.5.0
zconfigtest.h
Go to the documentation of this file.
1 
2 /* This software and supporting documentation are distributed by
3  * Institut Federatif de Recherche 49
4  * CEA/NeuroSpin, Batiment 145,
5  * 91191 Gif-sur-Yvette cedex
6  * France
7  *
8  * This software is governed by the CeCILL-B license under
9  * French law and abiding by the rules of distribution of free software.
10  * You can use, modify and/or redistribute the software under the
11  * terms of the CeCILL-B license as circulated by CEA, CNRS
12  * and INRIA at the following URL "http://www.cecill.info".
13  *
14  * As a counterpart to the access to the source code and rights to copy,
15  * modify and redistribute granted by the license, users are provided only
16  * with a limited warranty and the software's author, the holder of the
17  * economic rights, and the successive licensors have only limited
18  * liability.
19  *
20  * In this respect, the user's attention is drawn to the risks associated
21  * with loading, using, modifying and/or developing or reproducing the
22  * software by the user in light of its specific status of free software,
23  * that may mean that it is complicated to manipulate, and that also
24  * therefore means that it is reserved for developers and experienced
25  * professionals having in-depth computer knowledge. Users are therefore
26  * encouraged to load and test the software's suitability as regards their
27  * requirements in conditions enabling the security of their systems and/or
28  * data to be ensured and, more generally, to use and operate it in the
29  * same conditions as regards security.
30  *
31  * The fact that you are presently reading this means that you have had
32  * knowledge of the CeCILL-B license and that you accept its terms.
33  */
34 #ifndef CARTOBASE_ZOOLIB_ZCONFIG_H
35 #define CARTOBASE_ZOOLIB_ZCONFIG_H
36 
37 /* this source only tries to detect if ZooLib config will fail or not,
38  because zconfigl.h emits #error on failure
39 */
40 #if ( defined( __GNUC__ ) && \
41  ( defined( __unix__ ) || defined( __BEOS__ ) \
42  || defined( __APPLE__ ) ) && \
43  ( #cpu(i386) || #cpu(sparc) || #cpu(powerpc) \
44  || defined( __POWERPC__ ) ) \
45  ) \
46  || ( defined( __MWERKS__ ) && \
47  ( defined( TARGET_API_MAC_CARBON ) || defined( __MACOS__ ) \
48  || defined( __INTEL__ ) || defined( __BEOS__ ) ) && \
49  ( defined( __POWERPC__ ) || defined( __MC68K__ ) \
50  || defined( mw_rez ) || defined( __INTEL__ ) ) \
51  ) \
52  || defined( _MSC_VER )
53 
54 // then it's OK to include ZooLib config
55 #include "zconfig.h"
56 
57 /* I remove this test because
58  * it was wrong: ZCONFIG_API_Thread is always defined if threading is
59  supported, even if atomic operations are enabled.
60  * we need thread safety
61 */
62 // // disable threaded implementation (too slow)
63 // #ifdef ZCONFIG_API_Thread
64 // #undef ZCONFIG_Compiler
65 // #undef ZCONFIG_OS
66 // #undef ZCONFIG_Processor
67 // #endif
68 
69 #endif
70 
71 #endif
72 
73