2017-08-31 20:24:20 +00:00
|
|
|
/* Define to 1 if you have the `gettext' function. */
|
|
|
|
#cmakedefine HAVE_GETTEXT 1
|
|
|
|
|
2022-07-24 14:39:57 +00:00
|
|
|
/* Define to 1 if the status that wait returns and WEXITSTATUS expects is signal and then ret instead of the other way around. */
|
|
|
|
#cmakedefine HAVE_WAITSTATUS_SIGNAL_RET 1
|
|
|
|
|
2017-08-31 20:24:20 +00:00
|
|
|
/* Define to 1 if the _nl_msg_cat_cntr symbol is exported. */
|
|
|
|
#cmakedefine HAVE__NL_MSG_CAT_CNTR 1
|
|
|
|
|
2021-10-02 23:47:17 +00:00
|
|
|
/* Define to use clock_gettime and futimens to hack around Linux mtime issue */
|
|
|
|
#cmakedefine UVAR_FILE_SET_MTIME_HACK 1
|
|
|
|
|
2017-08-31 20:24:20 +00:00
|
|
|
/* Define to the address where bug reports for this package should be sent. */
|
2018-12-11 10:47:34 +00:00
|
|
|
#define PACKAGE_BUGREPORT "https://github.com/fish-shell/fish-shell/issues"
|
2017-08-31 20:24:20 +00:00
|
|
|
|
|
|
|
/* Define to the full name of this package. */
|
|
|
|
#define PACKAGE_NAME "fish"
|
|
|
|
|
2018-12-20 13:36:01 +00:00
|
|
|
/* Enable GNU extensions on systems that have them. */
|
|
|
|
#ifndef _GNU_SOURCE
|
|
|
|
# define _GNU_SOURCE 1
|
|
|
|
#endif
|
|
|
|
|
2017-08-31 20:24:20 +00:00
|
|
|
/* The size of wchar_t in bits. */
|
|
|
|
#define WCHAR_T_BITS ${WCHAR_T_BITS}
|
|
|
|
|
|
|
|
/* Enable large inode numbers on Mac OS X 10.5. */
|
|
|
|
#ifndef _DARWIN_USE_64_BIT_INODE
|
|
|
|
# define _DARWIN_USE_64_BIT_INODE 1
|
|
|
|
#endif
|
|
|
|
|
2020-07-25 19:39:06 +00:00
|
|
|
/* Support __warn_unused on function return values. */
|
2017-08-31 20:24:20 +00:00
|
|
|
#if __GNUC__ >= 3
|
|
|
|
#ifndef __warn_unused
|
|
|
|
#define __warn_unused __attribute__ ((warn_unused_result))
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#define __warn_unused
|
|
|
|
#endif
|
2020-07-25 19:39:06 +00:00
|
|
|
|
|
|
|
/* Like __warn_unused, but applies to a type.
|
|
|
|
At the moment only clang supports this as a type attribute.
|
2020-12-16 16:06:48 +00:00
|
|
|
|
|
|
|
We need to check for __has_attribute being a thing before or old gcc fails - #7554.
|
2020-07-25 19:39:06 +00:00
|
|
|
*/
|
2020-12-16 16:06:48 +00:00
|
|
|
#ifndef __has_attribute
|
|
|
|
#define __has_attribute(x) 0 // Compatibility with non-clang and old gcc compilers.
|
|
|
|
#endif
|
|
|
|
|
2020-07-25 19:39:06 +00:00
|
|
|
#if defined(__clang__) && __has_attribute(warn_unused_result)
|
|
|
|
#ifndef __warn_unused_type
|
|
|
|
#define __warn_unused_type __attribute__ ((warn_unused_result))
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#define __warn_unused_type
|
|
|
|
#endif
|
2021-02-06 23:01:17 +00:00
|
|
|
|
|
|
|
#if __has_attribute(fallthrough)
|
2021-02-06 23:17:28 +00:00
|
|
|
#define __fallthrough__ __attribute__ ((fallthrough));
|
2021-02-06 23:01:17 +00:00
|
|
|
#else
|
|
|
|
#define __fallthrough__
|
|
|
|
#endif
|