diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-05-03 09:18:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-05-03 09:18:25 +0200 |
commit | f429e2c55f77d5869683d902c9f4d96df1678d6c (patch) | |
tree | 7aa60d04a145620b10cbc046a9894479121addc4 /libstudxml/details/config.h | |
parent | 424e315dfa9a78aebf0653c95f83fe6ed452dd8e (diff) |
Get rid of legacy build systems
Diffstat (limited to 'libstudxml/details/config.h')
-rw-r--r-- | libstudxml/details/config.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/libstudxml/details/config.h b/libstudxml/details/config.h new file mode 100644 index 0000000..b31aa2d --- /dev/null +++ b/libstudxml/details/config.h @@ -0,0 +1,40 @@ +/* file : libstudxml/details/build2/config.h + * copyright : Copyright (c) 2013-2017 Code Synthesis Tools CC + * license : MIT; see accompanying LICENSE file + */ + +/* Static configuration file for the build2 build. */ + +#ifndef LIBSTUDXML_DETAILS_CONFIG_H +#define LIBSTUDXML_DETAILS_CONFIG_H + +#ifdef __FreeBSD__ +# include <sys/endian.h> /* BYTE_ORDER */ +#else +# if defined(_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 */ +# 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 +#endif + +#if BYTE_ORDER == BIG_ENDIAN +# define LIBSTUDXML_BYTEORDER 4321 +#else +# define LIBSTUDXML_BYTEORDER 1234 +#endif + +#endif /* LIBSTUDXML_DETAILS_CONFIG_H */ |