diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-04-30 22:21:59 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-05-02 16:39:33 +0300 |
commit | bcb070e59279c6ce4ab9fbc8c6f7350a513144c2 (patch) | |
tree | db85144480195b324ebbd13b9907cd402c5f4c61 /libcrypto/libcrypto/downstream/crypto/platform.h | |
parent | 20e5ad6c6beef6d7e5c9ea524bb771c1bd5dd633 (diff) |
Release version 1.1.1+11v1.1.1+11
Upgrade to 1.1.1g
Diffstat (limited to 'libcrypto/libcrypto/downstream/crypto/platform.h')
-rw-r--r-- | libcrypto/libcrypto/downstream/crypto/platform.h | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/libcrypto/libcrypto/downstream/crypto/platform.h b/libcrypto/libcrypto/downstream/crypto/platform.h new file mode 100644 index 0000000..1ec5c81 --- /dev/null +++ b/libcrypto/libcrypto/downstream/crypto/platform.h @@ -0,0 +1,72 @@ +/* file : libcrypto/downstream/crypto/platform.h -*- C -*- + * license : OpenSSL and SSLeay Licenses; see accompanying LICENSE file + */ + +/* + * This header is used for inclusion of upstream's auto-generated + * platform-specific header. + * + * If there is the auto-generated header foo.h, then the workflow is normally + * as follows: + * + * - Create foo/. + * + * - Symlink platform.h into foo/. + * + * - Copy upstream's auto-generated for different platforms foo.h into foo/, + * using the `<architecture>-<os>[-<compiler>].h` naming convention (see + * below for exact names). + * + * - Create foo.h including foo/platform.h. + * + * See bn_conf.h for the real example. + */ + +#ifndef _WIN32 +# if defined(__x86_64__) /* POSIX x86_64 */ +# if defined(__linux__) +# include "x86_64-linux.h" +# elif defined(__FreeBSD__) +# include "x86_64-freebsd.h" +# elif defined(__APPLE__) +# include "x86_64-macos.h" +# else +# error x86_64 architecture is not supported for this OS +# endif +# elif defined(__i386__) /* POSIX i386 */ +# if defined(__linux__) +# include "i686-linux.h" +/* + * i686 architecture is not currently supported for FreeBSD and Mac OS. + */ +/* +# elif defined(__FreeBSD__) +# include "i686-freebsd.h" +# elif defined(__APPLE__) +# include "i686-macos.h" +*/ +# else +# error i686 architecture is not supported for this OS +# endif +# else +# error unknown architecture +# endif +#else +# if defined(_WIN64) /* Windows x86_64 */ +# if defined(_MSC_VER) +# include "x86_64-win32-msvc.h" +# elif defined(__MINGW32__) +# include "x86_64-win32-mingw32.h" +# else +# error x86_64 architecture is not supported for this compiler +# endif +# else /* Windows i386 */ +# if defined(_MSC_VER) +# include "i686-win32-msvc.h" +# elif defined(__MINGW32__) +# include "i686-win32-mingw32.h" +# else +# error i686 architecture is not supported for this compiler +# endif +# endif +#endif |