Mercurial > octave
annotate oct-conf-post.in.h @ 22752:ee34028f63fc stable
datetick.m: Fix unequal spacing of months and years (bug #39727).
* datetick.m: For else clauses covering months and years, construct an
appropriate datevec entity and then convert that with datenum.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 12 Nov 2016 15:34:29 -0800 |
parents | 1f3475e2e136 |
children | 3a2b891d0b33 3ac9f9ecfae5 |
rev | line source |
---|---|
20436
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
1 /* |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
2 |
22323
bac0d6f07a3e
maint: Update copyright notices for 2016.
John W. Eaton <jwe@octave.org>
parents:
22197
diff
changeset
|
3 Copyright (C) 1993-2016 John W. Eaton |
20436
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
4 |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
5 This file is part of Octave. |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
6 |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
7 Octave is free software; you can redistribute it and/or modify it |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
8 under the terms of the GNU General Public License as published by the |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
9 Free Software Foundation; either version 3 of the License, or (at your |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
10 option) any later version. |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
11 |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
15 for more details. |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
16 |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
17 You should have received a copy of the GNU General Public License |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
18 along with Octave; see the file COPYING. If not, see |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
19 <http://www.gnu.org/licenses/>. |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
20 |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
21 */ |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
22 |
21189
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
23 /* The C++ standard is evolving to allow attribute hints in a |
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
24 compiler-independent manner. In C++ 2011 support for noreturn was |
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
25 added. In C++ 2014 support for deprecated was added. The Octave |
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
26 code base has been future-proofed by using macros of the form |
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
27 OCTAVE_ATTRIBUTE_NAME in place of vendor specific attribute |
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
28 mechanisms. As compilers evolve, the underlying implementation can |
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
29 be changed with the macro definitions below. FIXME: Update macros |
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
30 to use C++ standard attribute syntax when Octave moves to C++ 2011 |
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
31 standard. */ |
20436
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
32 |
21040
3e7cfee5f786
maint: Rename attributes GCC_ATTR_XXX to OCTAVE_XXX.
Rik <rik@octave.org>
parents:
20436
diff
changeset
|
33 #if defined (__GNUC__) |
21189
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
34 /* The following attributes are used with gcc and clang compilers. */ |
21325
64be7d374f86
Make OCTAVE_DEPRECATED macro compatible with older gcc
Mike Miller <mtmiller@octave.org>
parents:
21240
diff
changeset
|
35 # if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) |
64be7d374f86
Make OCTAVE_DEPRECATED macro compatible with older gcc
Mike Miller <mtmiller@octave.org>
parents:
21240
diff
changeset
|
36 # define OCTAVE_DEPRECATED(msg) __attribute__ ((__deprecated__ (msg))) |
64be7d374f86
Make OCTAVE_DEPRECATED macro compatible with older gcc
Mike Miller <mtmiller@octave.org>
parents:
21240
diff
changeset
|
37 # else |
64be7d374f86
Make OCTAVE_DEPRECATED macro compatible with older gcc
Mike Miller <mtmiller@octave.org>
parents:
21240
diff
changeset
|
38 # define OCTAVE_DEPRECATED(msg) __attribute__ ((__deprecated__)) |
64be7d374f86
Make OCTAVE_DEPRECATED macro compatible with older gcc
Mike Miller <mtmiller@octave.org>
parents:
21240
diff
changeset
|
39 # endif |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
21228
diff
changeset
|
40 # define HAVE_OCTAVE_DEPRECATED_ATTR 1 |
21040
3e7cfee5f786
maint: Rename attributes GCC_ATTR_XXX to OCTAVE_XXX.
Rik <rik@octave.org>
parents:
20436
diff
changeset
|
41 |
21189
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
42 # define OCTAVE_NORETURN __attribute__ ((__noreturn__)) |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
21228
diff
changeset
|
43 # define HAVE_OCTAVE_NORETURN_ATTR 1 |
21040
3e7cfee5f786
maint: Rename attributes GCC_ATTR_XXX to OCTAVE_XXX.
Rik <rik@octave.org>
parents:
20436
diff
changeset
|
44 |
21189
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
45 # define OCTAVE_UNUSED __attribute__ ((__unused__)) |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
21228
diff
changeset
|
46 # define HAVE_OCTAVE_UNUSED_ATTR 1 |
20436
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
47 #else |
21189
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
48 # define OCTAVE_DEPRECATED(msg) |
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
49 # define OCTAVE_NORETURN |
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
50 # define OCTAVE_UNUSED |
20436
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
51 #endif |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
52 |
22118
17c59e33b236
* oct-conf-post.in.h, mk-octave-config-h.sh: Revert unintended changes from previous changeset.
John W. Eaton <jwe@octave.org>
parents:
22117
diff
changeset
|
53 #define OCTAVE_USE_DEPRECATED_FUNCTIONS 1 |
21726
f05a00e611ff
use namespace for glob and fnmatch wrapper functions
John W. Eaton <jwe@octave.org>
parents:
21691
diff
changeset
|
54 |
21691
263d18409fdf
Eliminate unused variable warnings for conditionally compiled code.
John W. Eaton <jwe@octave.org>
parents:
21325
diff
changeset
|
55 #if defined (__cplusplus) |
263d18409fdf
Eliminate unused variable warnings for conditionally compiled code.
John W. Eaton <jwe@octave.org>
parents:
21325
diff
changeset
|
56 template <typename T> |
263d18409fdf
Eliminate unused variable warnings for conditionally compiled code.
John W. Eaton <jwe@octave.org>
parents:
21325
diff
changeset
|
57 static inline void |
263d18409fdf
Eliminate unused variable warnings for conditionally compiled code.
John W. Eaton <jwe@octave.org>
parents:
21325
diff
changeset
|
58 octave_unused_parameter (const T&) |
263d18409fdf
Eliminate unused variable warnings for conditionally compiled code.
John W. Eaton <jwe@octave.org>
parents:
21325
diff
changeset
|
59 { } |
263d18409fdf
Eliminate unused variable warnings for conditionally compiled code.
John W. Eaton <jwe@octave.org>
parents:
21325
diff
changeset
|
60 #else |
263d18409fdf
Eliminate unused variable warnings for conditionally compiled code.
John W. Eaton <jwe@octave.org>
parents:
21325
diff
changeset
|
61 # define octave_unused_parameter(param) (void) param; |
263d18409fdf
Eliminate unused variable warnings for conditionally compiled code.
John W. Eaton <jwe@octave.org>
parents:
21325
diff
changeset
|
62 #endif |
263d18409fdf
Eliminate unused variable warnings for conditionally compiled code.
John W. Eaton <jwe@octave.org>
parents:
21325
diff
changeset
|
63 |
20436
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
64 #if ! defined (HAVE_DEV_T) |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
65 typedef short dev_t; |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
66 #endif |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
67 |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
68 #if ! defined (HAVE_INO_T) |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
69 typedef unsigned long ino_t; |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
70 #endif |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
71 |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
72 #if defined (_MSC_VER) |
21213
f7d1050b9b53
maint: Clean up various usages of #ifdef.
Rik <rik@octave.org>
parents:
21189
diff
changeset
|
73 # define __WIN32__ 1 |
f7d1050b9b53
maint: Clean up various usages of #ifdef.
Rik <rik@octave.org>
parents:
21189
diff
changeset
|
74 # define WIN32 1 |
21189
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
75 /* missing parameters in macros */ |
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
76 # pragma warning (disable: 4003) |
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
77 /* missing implementations in template instantiation */ |
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
78 # pragma warning (disable: 4996) |
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
79 /* deprecated function names (FIXME: ???) */ |
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
80 # pragma warning (disable: 4661) |
20436
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
81 #endif |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
82 |
22012
22a272df4ac4
restore API macros to oct-conf-post.h removed in cset 6bce4d23af6b
John W. Eaton <jwe@octave.org>
parents:
21989
diff
changeset
|
83 #if defined (__APPLE__) && defined (__MACH__) |
22a272df4ac4
restore API macros to oct-conf-post.h removed in cset 6bce4d23af6b
John W. Eaton <jwe@octave.org>
parents:
21989
diff
changeset
|
84 # define OCTAVE_USE_OS_X_API 1 |
22a272df4ac4
restore API macros to oct-conf-post.h removed in cset 6bce4d23af6b
John W. Eaton <jwe@octave.org>
parents:
21989
diff
changeset
|
85 #endif |
22a272df4ac4
restore API macros to oct-conf-post.h removed in cset 6bce4d23af6b
John W. Eaton <jwe@octave.org>
parents:
21989
diff
changeset
|
86 |
22a272df4ac4
restore API macros to oct-conf-post.h removed in cset 6bce4d23af6b
John W. Eaton <jwe@octave.org>
parents:
21989
diff
changeset
|
87 /* Define to 1 if we expect to have <windows.h>, Sleep, etc. */ |
20436
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
88 #if defined (__WIN32__) && ! defined (__CYGWIN__) |
22012
22a272df4ac4
restore API macros to oct-conf-post.h removed in cset 6bce4d23af6b
John W. Eaton <jwe@octave.org>
parents:
21989
diff
changeset
|
89 # define OCTAVE_USE_WINDOWS_API 1 |
22a272df4ac4
restore API macros to oct-conf-post.h removed in cset 6bce4d23af6b
John W. Eaton <jwe@octave.org>
parents:
21989
diff
changeset
|
90 #endif |
22a272df4ac4
restore API macros to oct-conf-post.h removed in cset 6bce4d23af6b
John W. Eaton <jwe@octave.org>
parents:
21989
diff
changeset
|
91 |
22a272df4ac4
restore API macros to oct-conf-post.h removed in cset 6bce4d23af6b
John W. Eaton <jwe@octave.org>
parents:
21989
diff
changeset
|
92 #if defined (OCTAVE_USE_WINDOWS_API) |
21189
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
93 # define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1 |
20436
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
94 #elif defined (__CYGWIN__) |
21189
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
95 # define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1 |
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
96 # define OCTAVE_HAVE_POSIX_FILESYSTEM 1 |
20436
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
97 #else |
21189
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
98 # define OCTAVE_HAVE_POSIX_FILESYSTEM 1 |
20436
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
99 #endif |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
100 |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
101 /* sigsetjmp is a macro, not a function. */ |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
102 #if defined (sigsetjmp) && defined (HAVE_SIGLONGJMP) |
21213
f7d1050b9b53
maint: Clean up various usages of #ifdef.
Rik <rik@octave.org>
parents:
21189
diff
changeset
|
103 # define OCTAVE_HAVE_SIG_JUMP 1 |
20436
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
104 #endif |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
105 |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
21228
diff
changeset
|
106 #if defined (OCTAVE_ENABLE_64) |
21189
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
107 # define SIZEOF_OCTAVE_IDX_TYPE SIZEOF_INT64_T |
20436
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
108 #else |
21189
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
109 # define SIZEOF_OCTAVE_IDX_TYPE SIZEOF_INT |
20436
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
110 #endif |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
111 |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
112 /* To be able to use long doubles for 64-bit mixed arithmetics, we need |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
113 them at least 80 bits wide and we need roundl declared in math.h. |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
114 FIXME: Maybe substitute this by a more precise check in the future? */ |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
115 #if (SIZEOF_LONG_DOUBLE >= 10) && defined (HAVE_ROUNDL) |
21189
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
116 # define OCTAVE_INT_USE_LONG_DOUBLE |
22197
e43d83253e28
refill multi-line macro definitions
John W. Eaton <jwe@octave.org>
parents:
22143
diff
changeset
|
117 # if (SIZEOF_LONG_DOUBLE < 16 \ |
21189
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
118 && (defined __i386__ || defined __x86_64__) && defined __GNUC__) |
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
119 # define OCTAVE_ENSURE_LONG_DOUBLE_OPERATIONS_ARE_NOT_TRUNCATED 1 |
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
120 # endif |
20436
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
121 #endif |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
122 |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
123 /* oct-dlldefs.h */ |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
124 |
21189
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
125 /* FIXME: GCC supports visibility attributes as well, even using the |
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
126 same __declspec declaration if desired. The build system should be |
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
127 extended to support GCC and visibility attributes. */ |
20436
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
128 #if defined (_MSC_VER) |
21189
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
129 # define OCTAVE_EXPORT __declspec(dllexport) |
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
130 # define OCTAVE_IMPORT __declspec(dllimport) |
20436
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
131 #else |
21189
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
132 /* All other compilers, at least for now. */ |
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
133 # define OCTAVE_EXPORT |
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
134 # define OCTAVE_IMPORT |
20436
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
135 #endif |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
136 |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
137 /* API macro for liboctave */ |
21189
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
138 #if defined (OCTAVE_DLL) |
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
139 # define OCTAVE_API OCTAVE_EXPORT |
20436
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
140 #else |
21189
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
141 # define OCTAVE_API OCTAVE_IMPORT |
20436
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
142 #endif |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
143 |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
144 /* API macro for libinterp */ |
21189
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
145 #if defined (OCTINTERP_DLL) |
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
146 # define OCTINTERP_API OCTAVE_EXPORT |
20436
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
147 #else |
21189
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
148 # define OCTINTERP_API OCTAVE_IMPORT |
20436
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
149 #endif |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
150 |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
151 /* API macro for libinterp/graphics */ |
21189
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
152 #if defined (OCTGRAPHICS_DLL) |
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
153 # define OCTGRAPHICS_API OCTAVE_EXPORT |
20436
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
154 #else |
21189
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
155 # define OCTGRAPHICS_API OCTAVE_IMPORT |
20436
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
156 #endif |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
157 |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
158 /* API macro for libgui */ |
21189
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
159 #if defined (OCTGUI_DLL) |
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
160 # define OCTGUI_API OCTAVE_EXPORT |
20436
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
161 #else |
21189
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
162 # define OCTGUI_API OCTAVE_IMPORT |
20436
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
163 #endif |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
164 |
21131
54527108599a
store more --enable-FEATURE info in octave_config_info
John W. Eaton <jwe@octave.org>
parents:
21092
diff
changeset
|
165 /* Backward compatibility */ |
54527108599a
store more --enable-FEATURE info in octave_config_info
John W. Eaton <jwe@octave.org>
parents:
21092
diff
changeset
|
166 |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
21228
diff
changeset
|
167 #if defined (OCTAVE_ENABLE_ATOMIC_REFCOUNT) |
21189
47765afaf131
style fixes for oct-conf-post.in.h
John W. Eaton <jwe@octave.org>
parents:
21188
diff
changeset
|
168 # define USE_ATOMIC_REFCOUNT 1 |
21131
54527108599a
store more --enable-FEATURE info in octave_config_info
John W. Eaton <jwe@octave.org>
parents:
21092
diff
changeset
|
169 #endif |
54527108599a
store more --enable-FEATURE info in octave_config_info
John W. Eaton <jwe@octave.org>
parents:
21092
diff
changeset
|
170 |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
21228
diff
changeset
|
171 #if defined (OCTAVE_ENABLE_64) |
21213
f7d1050b9b53
maint: Clean up various usages of #ifdef.
Rik <rik@octave.org>
parents:
21189
diff
changeset
|
172 # define USE_64_BIT_IDX_T 1 |
21131
54527108599a
store more --enable-FEATURE info in octave_config_info
John W. Eaton <jwe@octave.org>
parents:
21092
diff
changeset
|
173 #endif |
54527108599a
store more --enable-FEATURE info in octave_config_info
John W. Eaton <jwe@octave.org>
parents:
21092
diff
changeset
|
174 |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
21228
diff
changeset
|
175 #if defined (OCTAVE_ENABLE_OPENMP) |
21213
f7d1050b9b53
maint: Clean up various usages of #ifdef.
Rik <rik@octave.org>
parents:
21189
diff
changeset
|
176 # define HAVE_OPENMP 1 |
21131
54527108599a
store more --enable-FEATURE info in octave_config_info
John W. Eaton <jwe@octave.org>
parents:
21092
diff
changeset
|
177 #endif |
54527108599a
store more --enable-FEATURE info in octave_config_info
John W. Eaton <jwe@octave.org>
parents:
21092
diff
changeset
|
178 |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
21228
diff
changeset
|
179 #if defined (OCTAVE_ENABLE_FLOAT_TRUNCATE) |
21225
19a619ac9508
rename FLOAT_TRUNCATE to OCTAVE_FLOAT_TRUNCATE
John W. Eaton <jwe@octave.org>
parents:
21213
diff
changeset
|
180 # define OCTAVE_FLOAT_TRUNCATE volatile |
21131
54527108599a
store more --enable-FEATURE info in octave_config_info
John W. Eaton <jwe@octave.org>
parents:
21092
diff
changeset
|
181 #else |
21225
19a619ac9508
rename FLOAT_TRUNCATE to OCTAVE_FLOAT_TRUNCATE
John W. Eaton <jwe@octave.org>
parents:
21213
diff
changeset
|
182 # define OCTAVE_FLOAT_TRUNCATE |
21131
54527108599a
store more --enable-FEATURE info in octave_config_info
John W. Eaton <jwe@octave.org>
parents:
21092
diff
changeset
|
183 #endif |
54527108599a
store more --enable-FEATURE info in octave_config_info
John W. Eaton <jwe@octave.org>
parents:
21092
diff
changeset
|
184 |
21850
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21749
diff
changeset
|
185 #if defined (__cplusplus) |
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21749
diff
changeset
|
186 # include <cstdint> |
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21749
diff
changeset
|
187 #else |
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21749
diff
changeset
|
188 # include <stdint.h> |
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21749
diff
changeset
|
189 #endif |
20436
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
190 |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
191 typedef OCTAVE_IDX_TYPE octave_idx_type; |
bf47ac616bc0
Backout 9c7dd58b57e4 and have configure generate oct-conf-post.h
Rik <rik@octave.org>
parents:
diff
changeset
|
192 |
21240
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21229
diff
changeset
|
193 /* Tag indicating Octave's autoconf-generated config.h has been |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21229
diff
changeset
|
194 included. This symbol is provided because autoconf-generated |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21229
diff
changeset
|
195 config.h files do not define a multiple-inclusion guard. See also |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21229
diff
changeset
|
196 the notes at the top of the generated octave-config.h file. */ |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21229
diff
changeset
|
197 |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21229
diff
changeset
|
198 #define OCTAVE_AUTOCONFIG_H_INCLUDED 1 |