diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-02 21:26:58 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-02 23:55:21 +0300 |
commit | 424e315dfa9a78aebf0653c95f83fe6ed452dd8e (patch) | |
tree | 59759d1d4eac4096df104d4dbab24a531ada3399 /libstudxml/details/build2 | |
parent | 3d2b5b2a7064abe35614ebb32db03bd2881adcf0 (diff) |
Add hxx extension for headers and libstud prefix for library dir
Diffstat (limited to 'libstudxml/details/build2')
-rw-r--r-- | libstudxml/details/build2/config-vc.h | 20 | ||||
-rw-r--r-- | libstudxml/details/build2/config.h | 45 |
2 files changed, 65 insertions, 0 deletions
diff --git a/libstudxml/details/build2/config-vc.h b/libstudxml/details/build2/config-vc.h new file mode 100644 index 0000000..f54ad58 --- /dev/null +++ b/libstudxml/details/build2/config-vc.h @@ -0,0 +1,20 @@ +/* file : libstudxml/details/build2/config-vc.h + * copyright : Copyright (c) 2013-2017 Code Synthesis Tools CC + * license : MIT; see accompanying LICENSE file + */ + +/* Configuration file for Windows/VC++ for the build2 build. */ + +#ifndef LIBSTUDXML_DETAILS_CONFIG_VC_H +#define LIBSTUDXML_DETAILS_CONFIG_VC_H + +/* Define LIBSTUDXML_BUILD2 for the installed case. */ +#ifndef LIBSTUDXML_BUILD2 +# define LIBSTUDXML_BUILD2 +#endif + +// Always little-endian, at least on i686 and x86_64. +// +#define LIBSTUDXML_BYTEORDER 1234 + +#endif /* LIBSTUDXML_DETAILS_CONFIG_VC_H */ diff --git a/libstudxml/details/build2/config.h b/libstudxml/details/build2/config.h new file mode 100644 index 0000000..b47f252 --- /dev/null +++ b/libstudxml/details/build2/config.h @@ -0,0 +1,45 @@ +/* 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 + +/* Define LIBSTUDXML_BUILD2 for the installed case. */ +#ifndef LIBSTUDXML_BUILD2 +# define LIBSTUDXML_BUILD2 +#endif + +#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 */ |