ext/x25519_precomputed/x25519_precomputed.h in x25519-1.0.6 vs ext/x25519_precomputed/x25519_precomputed.h in x25519-1.0.7
- old
+ new
@@ -18,14 +18,19 @@
#ifndef X25519_PRECOMPUTED_H
#define X25519_PRECOMPUTED_H
#include <stdint.h>
+#ifndef ALIGN_BYTES
#define ALIGN_BYTES 32
+#endif
+
+#ifndef ALIGN
#ifdef __INTEL_COMPILER
#define ALIGN __declspec(align(ALIGN_BYTES))
#else
-#define ALIGN __attribute__ ((aligned (ALIGN_BYTES)))
+#define ALIGN __attribute__((aligned(ALIGN_BYTES)))
+#endif
#endif
#define X25519_KEYSIZE_BYTES 32
typedef ALIGN uint8_t X25519_KEY[X25519_KEYSIZE_BYTES];