aboutsummaryrefslogtreecommitdiffstats
path: root/src/serd_config.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-01-13 20:00:25 +0100
committerDavid Robillard <d@drobilla.net>2021-03-08 23:23:06 -0500
commit468f7dc4294905d19f55c58c47ba91cd23bf357b (patch)
tree3531d4dbc53e3454534ea607dfa4f44d0f085f5d /src/serd_config.h
parent229443778ffc6b26a13322983b81f4f1912427af (diff)
downloadserd-468f7dc4294905d19f55c58c47ba91cd23bf357b.tar.gz
serd-468f7dc4294905d19f55c58c47ba91cd23bf357b.tar.bz2
serd-468f7dc4294905d19f55c58c47ba91cd23bf357b.zip
WIP: Add extensible logging API
Diffstat (limited to 'src/serd_config.h')
-rw-r--r--src/serd_config.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/serd_config.h b/src/serd_config.h
index 7f58696e..12930b1b 100644
--- a/src/serd_config.h
+++ b/src/serd_config.h
@@ -51,6 +51,13 @@
# endif
# endif
+// POSIX.1-2001: isatty()
+# ifndef HAVE_ISATTY
+# if defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L
+# define HAVE_ISATTY
+# endif
+# endif
+
// POSIX.1-2001: posix_fadvise()
# ifndef HAVE_POSIX_FADVISE
# ifndef __APPLE__
@@ -83,6 +90,12 @@
# define USE_FILENO 0
#endif
+#ifdef HAVE_ISATTY
+# define USE_ISATTY 1
+#else
+# define USE_ISATTY 0
+#endif
+
#ifdef HAVE_POSIX_FADVISE
# define USE_POSIX_FADVISE 1
#else