comparison oct-conf-post.in.h @ 20646:bf47ac616bc0

Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h Temporary backout until a better way can be found to place oct-conf-post.h in the build directory rather than just the sourc directory.
author Rik <rik@octave.org>
date Mon, 10 Aug 2015 08:45:06 -0700
parents
children
comparison
equal deleted inserted replaced
20645:82712ed1be68 20646:bf47ac616bc0
1 /*
2
3 Copyright (C) 1993-2015 John W. Eaton
4
5 This file is part of Octave.
6
7 Octave is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 3 of the License, or (at your
10 option) any later version.
11
12 Octave is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with Octave; see the file COPYING. If not, see
19 <http://www.gnu.org/licenses/>.
20
21 */
22
23 #if !defined (GNULIB_NAMESPACE)
24 #define GNULIB_NAMESPACE gnulib
25 #endif
26
27 #if defined (__GNUC__)
28 #define GCC_ATTR_DEPRECATED __attribute__ ((__deprecated__))
29 #define HAVE_ATTR_DEPRECATED
30
31 #define GCC_ATTR_NORETURN __attribute__ ((__noreturn__))
32 #define HAVE_ATTR_NORETURN
33
34 #define GCC_ATTR_UNUSED __attribute__ ((__unused__))
35 #define HAVE_ATTR_UNUSED
36 #else
37 #define GCC_ATTR_DEPRECATED
38 #define GCC_ATTR_NORETURN
39 #define GCC_ATTR_UNUSED
40 #endif
41
42 #define X_CAST(T, E) (T) (E)
43
44 #if defined (CXX_BROKEN_REINTERPRET_CAST)
45 #define FCN_PTR_CAST(T, E) (T) (E)
46 #else
47 #define FCN_PTR_CAST(T, E) reinterpret_cast<T> (E)
48 #endif
49
50 #if ! defined (HAVE_DEV_T)
51 typedef short dev_t;
52 #endif
53
54 #if ! defined (HAVE_INO_T)
55 typedef unsigned long ino_t;
56 #endif
57
58 #if defined (_MSC_VER)
59 #define __WIN32__
60 #define WIN32
61 /* missing parameters in macros */
62 #pragma warning (disable: 4003)
63 /* missing implementations in template instantiation */
64 #pragma warning (disable: 4996)
65 /* deprecated function names (FIXME?) */
66 #pragma warning (disable: 4661)
67 #endif
68
69 #if defined (__WIN32__) && ! defined (__CYGWIN__)
70 #define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1
71 #elif defined (__CYGWIN__)
72 #define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1
73 #define OCTAVE_HAVE_POSIX_FILESYSTEM 1
74 #else
75 #define OCTAVE_HAVE_POSIX_FILESYSTEM 1
76 #endif
77
78 /* Define to 1 if we expect to have <windows.h>, Sleep, etc. */
79 #if defined (__WIN32__) && ! defined (__CYGWIN__)
80 #define OCTAVE_USE_WINDOWS_API 1
81 #endif
82
83 #if defined (__APPLE__) && defined (__MACH__)
84 #define OCTAVE_USE_OS_X_API 1
85 #endif
86
87 /* sigsetjmp is a macro, not a function. */
88 #if defined (sigsetjmp) && defined (HAVE_SIGLONGJMP)
89 #define OCTAVE_HAVE_SIG_JUMP
90 #endif
91
92 #if defined (_UNICOS)
93 #define F77_USES_CRAY_CALLING_CONVENTION
94 #endif
95
96 #if 0
97 #define F77_USES_VISUAL_FORTRAN_CALLING_CONVENTION
98 #endif
99
100 #ifdef USE_64_BIT_IDX_T
101 #define SIZEOF_OCTAVE_IDX_TYPE SIZEOF_INT64_T
102 #else
103 #define SIZEOF_OCTAVE_IDX_TYPE SIZEOF_INT
104 #endif
105
106 /* To be able to use long doubles for 64-bit mixed arithmetics, we need
107 them at least 80 bits wide and we need roundl declared in math.h.
108 FIXME: Maybe substitute this by a more precise check in the future? */
109 #if (SIZEOF_LONG_DOUBLE >= 10) && defined (HAVE_ROUNDL)
110 # define OCTAVE_INT_USE_LONG_DOUBLE
111 # if (SIZEOF_LONG_DOUBLE < 16 \
112 && (defined __i386__ || defined __x86_64__) && defined __GNUC__)
113 #define OCTAVE_ENSURE_LONG_DOUBLE_OPERATIONS_ARE_NOT_TRUNCATED 1
114 # endif
115 #endif
116
117 #define OCTAVE_EMPTY_CPP_ARG
118
119 /* oct-dlldefs.h */
120
121 #if defined (_MSC_VER)
122 #define OCTAVE_EXPORT __declspec(dllexport)
123 #define OCTAVE_IMPORT __declspec(dllimport)
124 #else
125 /* All other compilers, at least for now. */
126 #define OCTAVE_EXPORT
127 #define OCTAVE_IMPORT
128 #endif
129
130 /* API macro for libcruft */
131 #ifdef CRUFT_DLL
132 #define CRUFT_API OCTAVE_EXPORT
133 #else
134 #define CRUFT_API OCTAVE_IMPORT
135 #endif
136
137 /* API macro for liboctave */
138 #ifdef OCTAVE_DLL
139 #define OCTAVE_API OCTAVE_EXPORT
140 #else
141 #define OCTAVE_API OCTAVE_IMPORT
142 #endif
143
144 /* API macro for libinterp */
145 #ifdef OCTINTERP_DLL
146 #define OCTINTERP_API OCTAVE_EXPORT
147 #else
148 #define OCTINTERP_API OCTAVE_IMPORT
149 #endif
150
151 /* API macro for libinterp/graphics */
152 #ifdef OCTGRAPHICS_DLL
153 #define OCTGRAPHICS_API OCTAVE_EXPORT
154 #else
155 #define OCTGRAPHICS_API OCTAVE_IMPORT
156 #endif
157
158 /* API macro for libgui */
159 #ifdef OCTGUI_DLL
160 #define OCTGUI_API OCTAVE_EXPORT
161 #else
162 #define OCTGUI_API OCTAVE_IMPORT
163 #endif
164
165 /* oct-types.h */
166
167 #include <stdint.h>
168
169 typedef OCTAVE_IDX_TYPE octave_idx_type;
170
171 /* Tag indicating Octave config.h has been included */
172 #define OCTAVE_CONFIG_INCLUDED 1