Move CRYPTO_ALIGN to sodium/export.h

This commit is contained in:
Frank Denis 2015-10-09 08:50:49 +02:00
parent 571bfc99c8
commit 396e16880d
2 changed files with 8 additions and 6 deletions

View File

@ -7,12 +7,6 @@
#include "export.h"
#if defined(_MSC_VER)
# define CRYPTO_ALIGN(x) __declspec(align(x))
#else
# define CRYPTO_ALIGN(x) __attribute__((aligned(x)))
#endif
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"

View File

@ -29,4 +29,12 @@
# endif
#endif
#ifndef CRYPTO_ALIGN
# if defined(_MSC_VER)
# define CRYPTO_ALIGN(x) __declspec(align(x))
# else
# define CRYPTO_ALIGN(x) __attribute__((aligned(x)))
# endif
#endif
#endif