aboutsummaryrefslogtreecommitdiff
path: root/libpkgconf/config.h
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-09-06 17:40:06 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-09-11 13:58:25 +0300
commit4beec8f055fd3b0cc4ef618cce8b52c58dd0ee08 (patch)
tree08dc183e96625ef8b2068432154851e014047d89 /libpkgconf/config.h
parent507d73eaa2accb7ad880e8582fd4ffab45b7effd (diff)
Add implementation
Diffstat (limited to 'libpkgconf/config.h')
-rw-r--r--libpkgconf/config.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/libpkgconf/config.h b/libpkgconf/config.h
new file mode 100644
index 0000000..00ff8cb
--- /dev/null
+++ b/libpkgconf/config.h
@@ -0,0 +1,37 @@
+/* file : libpkgconf/config.h -*- C -*-
+ * copyright : Copyright (c) 2016-2017 Code Synthesis Ltd
+ * license : ISC; see accompanying COPYING file
+ */
+
+/*
+ * Defines PACKAGE_VERSION.
+ */
+#include <libpkgconf/version.h>
+
+/*
+ * strndup() is not present on Windows, for gcc and clang if compile with
+ * -std=C99, except for MacOS.
+ */
+#if defined (__apple_build_version__)
+# define HAVE_STRNDUP 1
+#endif
+
+#if defined(__FreeBSD__) || defined(__apple_build_version__)
+# define HAVE_STRLCPY 1
+# define HAVE_STRLCAT 1
+#endif
+
+/*
+ * Let's assume cygwin_conv_path() is always available if compile with MSYS
+ * gcc.
+ */
+#if defined(__MSYS__)
+# define HAVE_CYGWIN_CONV_PATH 1
+#endif
+
+/*
+ * We don't consider such an outdated environments.
+ */
+#define HAVE_SYS_STAT_H 1
+
+#define PACKAGE_BUGREPORT "http://github.com/pkgconf/pkgconf/issues"