-
Notifications
You must be signed in to change notification settings - Fork 57
/
oct-conf-post-private.in.h
120 lines (105 loc) · 4.32 KB
/
oct-conf-post-private.in.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 1993-2024 The Octave Project Developers
//
// See the file COPYRIGHT.md in the top-level directory of this
// distribution or <https://octave.org/copyright/>.
//
// This file is part of Octave.
//
// Octave is free software: you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Octave is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Octave; see the file COPYING. If not, see
// <https://www.gnu.org/licenses/>.
//
////////////////////////////////////////////////////////////////////////
#if ! defined (HAVE_DEV_T)
typedef short dev_t;
#endif
#if ! defined (HAVE_INO_T)
typedef unsigned long ino_t;
#endif
#if defined (_MSC_VER)
# define __WIN32__ 1
# define WIN32 1
/* missing parameters in macros */
# pragma warning (disable: 4003)
/* missing implementations in template instantiation */
# pragma warning (disable: 4996)
/* deprecated function names (FIXME: ???) */
# pragma warning (disable: 4661)
#endif
#if defined (__APPLE__) && defined (__MACH__)
# define OCTAVE_USE_OS_X_API 1
#endif
/* Silence deprecated API warning from Apple OS > 10.14 */
#if defined (__APPLE__) && defined (__MACH__) && defined (HAVE_OPENGL)
# define GL_SILENCE_DEPRECATION 1
#endif
/* Define to 1 if we expect to have <windows.h>, Sleep, etc. */
#if defined (__WIN32__) && ! defined (__CYGWIN__)
# define OCTAVE_USE_WINDOWS_API 1
#endif
#if defined (OCTAVE_USE_WINDOWS_API)
# define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1
#elif defined (__CYGWIN__)
# define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1
# define OCTAVE_HAVE_POSIX_FILESYSTEM 1
#else
# define OCTAVE_HAVE_POSIX_FILESYSTEM 1
#endif
#if defined (__MINGW32__)
/* We need to include this header or __MSVCRT_VERSION__ might not be defined
to the correct value */
# include <_mingw.h>
#endif
/* assume that Windows will support UTF-8 locales when using UCRT */
#if defined (__MSVCRT_VERSION__) && __MSVCRT_VERSION__ == 0x0E00
# define OCTAVE_HAVE_WINDOWS_UTF8_LOCALE 1
#endif
/* sigsetjmp is a macro, not a function. */
#if defined (sigsetjmp) && defined (HAVE_SIGLONGJMP)
# define OCTAVE_HAVE_SIG_JUMP 1
#endif
/* To be able to use long doubles for 64-bit mixed arithmetics, we need
them at least 80 bits wide and we need roundl declared in math.h.
FIXME: Maybe substitute this by a more precise check in the future? */
#if (SIZEOF_LONG_DOUBLE >= 10) && defined (HAVE_ROUNDL)
# define OCTAVE_INT_USE_LONG_DOUBLE
# if (SIZEOF_LONG_DOUBLE < 16 \
&& (defined __i386__ || defined __x86_64__) && defined __GNUC__)
# define OCTAVE_ENSURE_LONG_DOUBLE_OPERATIONS_ARE_NOT_TRUNCATED 1
# endif
#endif
#if defined (HAVE_LLVM_LIBCXX)
/* The stream encoding facet from libc++ is stricter than libstdc++ when
it comes to reverting the stream. Disable encoding conversion for file
streams with libc++.
FIXME: Maybe use a more specific test. */
# define OCTAVE_HAVE_STRICT_ENCODING_FACET 1
#endif
/* Make all .oct file interpreter functions and methods static. */
#define OCTAVE_USE_STATIC_DEFUN
/* This macro is intended to be used only to enable inline functions or
typedefs that provide access to symbols that have been moved to the
octave namespace. It may be temporarily useful to define this macro
when moving a symbol to the octave namespace but it should not be
defined when building released versions of Octave, as building those
should not require deprecated symbols. It is defined in
octave-config.h, so users of Octave may continue to access symbols
using the deprecated names. */
/* #undef OCTAVE_PROVIDE_DEPRECATED_SYMBOLS */
/* Tag indicating Octave's autoconf-generated config.h has been
included. This symbol is provided because autoconf-generated
config.h files do not define a multiple-inclusion guard. See also
the notes at the top of the generated octave-config.h file. */
#define OCTAVE_AUTOCONFIG_H_INCLUDED 1