aboutsummaryrefslogtreecommitdiff
path: root/xml/details/build2/config.h
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-08-31 12:57:01 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-08-31 12:57:01 +0200
commit77bc33bcdf611d0f5c703d3d8e20d6f5aff8814c (patch)
tree242909f8eaba11d2ff34b5cc6ccacc27fc34846b /xml/details/build2/config.h
parent26aadd17ab7cf9b093b64ffc696d317b127e181d (diff)
Add build2-based build system
Diffstat (limited to 'xml/details/build2/config.h')
-rw-r--r--xml/details/build2/config.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/xml/details/build2/config.h b/xml/details/build2/config.h
new file mode 100644
index 0000000..f03416c
--- /dev/null
+++ b/xml/details/build2/config.h
@@ -0,0 +1,44 @@
+/* file : xml/details/build2/config.h
+ * copyright : Copyright (c) 2013-2014 Code Synthesis Tools CC
+ * license : MIT; see accompanying LICENSE file
+ */
+
+/* Static configuration file for the build2 build. */
+
+#ifndef XML_DETAILS_CONFIG_H
+#define XML_DETAILS_CONFIG_H
+
+/* Define LIBSTUDXML_BUILD2 for the installed case. */
+#ifndef LIBSTUDXML_BUILD2
+# define LIBSTUDXML_BUILD2
+#endif
+
+#ifdef _WIN32
+# ifndef BYTE_ORDER
+# define BIG_ENDIAN 4321
+# define LITTLE_ENDIAN 1234
+# define BYTE_ORDER LITTLE_ENDIAN
+# endif
+#else
+# include <sys/param.h> /* BYTE_ORDER/__BYTE_ORDER, BSD */
+# ifdef BSD
+# include <sys/endian.h> /* BYTE_ORDER */
+# endif
+# ifndef BYTE_ORDER
+# ifdef __BYTE_ORDER
+# define BYTE_ORDER __BYTE_ORDER
+# define BIG_ENDIAN __BIG_ENDIAN
+# define LITTLE_ENDIAN __LITTLE_ENDIAN
+# else
+# error no BYTE_ORDER/__BYTE_ORDER define
+# endif
+# endif
+#endif
+
+#if BYTE_ORDER == BIG_ENDIAN
+# define LIBSTUDXML_BYTEORDER 4321
+#else
+# define LIBSTUDXML_BYTEORDER 1234
+#endif
+
+#endif /* XML_DETAILS_CONFIG_H */