PLplot  5.9.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
plConfig.h
Go to the documentation of this file.
1 // -*-C-*-
2 // $Id: plConfig.h.in 12408 2013-07-09 16:28:26Z airwin $
3 //
4 // Maurice LeBrun
5 // IFS, University of Texas at Austin
6 // 18-Jul-1994
7 //
8 // Copyright (C) 2004, 2006, 2007, 2008, 2009 Alan W. Irwin
9 // Copyright (C) 2004 Rafael Laboissiere
10 // Copyright (C) 2004 Joao Cardoso
11 //
12 // This file is part of PLplot.
13 //
14 // PLplot is free software; you can redistribute it and/or modify
15 // it under the terms of the GNU Library General Public License as published
16 // by the Free Software Foundation; either version 2 of the License, or
17 // (at your option) any later version.
18 //
19 // PLplot is distributed in the hope that it will be useful,
20 // but WITHOUT ANY WARRANTY; without even the implied warranty of
21 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 // GNU Library General Public License for more details.
23 //
24 // You should have received a copy of the GNU Library General Public License
25 // along with PLplot; if not, write to the Free Software
26 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
27 //
28 //
29 
30 // Configured (by CMake) macros for PLplot that are required for the
31 // core build and the build of the installed
32 // examples (and presumably any user applications). Therefore, the
33 // configured plConfig.h should be installed. In contrast,
34 // config.h.cmake (note, plConfig.h #includes config.h for
35 // the core build because HAVE_CONFIG_H is #defined in that case)
36 // contains configured macros that are only required for the core
37 // build. Therefore, in contrast to plConfig.h, config.h should not
38 // be installed.
39 //
40 // Maintenance issue: in makes no sense to configure duplicate macros
41 // for both config.h and plConfig.h. Therefore, when adding a macro
42 // decide which file to put it in depending on whether the result is
43 // needed for the installed examples build or not. Furthermore, move
44 // configured macros from one file to the other as needed depending on
45 // that criterion, but do not copy them.
46 //
47 //
48 
49 #ifndef __PLCONFIG_H__
50 #define __PLCONFIG_H__
51 
52 #ifdef HAVE_CONFIG_H
53 # include <config.h>
54 #endif
55 
56 // Define if you have c++ accessible stdint.h
57 #define PL_HAVE_CXX_STDINT_H
58 
59 // Define if snprintf is available
60 #ifndef PL_HAVE_SNPRINTF
61 #define PL_HAVE_SNPRINTF
62 #endif
63 
64 // Define if _snprintf is available
65 #ifndef _PL_HAVE_SNPRINTF
66 /* #undef _PL_HAVE_SNPRINTF */
67 #endif
68 
69 // Define if isfinite is available
70 #define PL_HAVE_ISFINITE
71 
72 // Define if finite is available
73 /* #undef PL_HAVE_FINITE */
74 
75 // Define if _finite is available
76 /* #undef PL__HAVE_FINITE */
77 
78 // Define if isinf is available
79 #define PL_HAVE_ISINF
80 
81 // Define if _isinf is available
82 /* #undef PL__HAVE_ISINF */
83 
84 // Define if isnan is available
85 #define PL_HAVE_ISNAN
86 
87 // Define if _isnan is available
88 /* #undef PL__HAVE_ISNAN */
89 
90 // Define to 1 if you have the <stdint.h> header file.
91 #define PL_HAVE_STDINT_H 1
92 
93 // Define to 1 if you have the <unistd.h> header file.
94 #define PL_HAVE_UNISTD_H 1
95 
96 // Define if usleep is available
97 #define PL_HAVE_USLEEP
98 
99 // Define if you want PLplot's float type to be double
100 #define PL_DOUBLE
101 
102 // Define if C++ compiler accepts using namespace
103 #define PL_USE_NAMESPACE
104 
105 // Define if isnan is present in <math.h> but not in <cmath>
106 // - broken Mac OSX systems
107 /* #undef PL_BROKEN_ISNAN_CXX */
108 
109 #endif // __PLCONFIG_H__