diff options
author | Darren Tucker <dtucker@dtucker.net> | 2021-08-18 12:51:30 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2021-08-18 12:51:30 +1000 |
commit | 464ba22f1e38d25402e5ec79a9b8d34a32df5a3f (patch) | |
tree | 26d1a96e50a71b6e4af191b6d203cfef2e4a9ae8 /defines.h | |
parent | 7d878679a4b155a359d32104ff473f789501748d (diff) |
Check compiler for c99 declarations after code.
The sntrup761 reference code contains c99-style declarations after code
so don't try to build that if the compiler doesn't support it.
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -901,10 +901,10 @@ struct winsize { #endif /* - * sntrup761 uses variable length arrays, only enable if the compiler - * supports them. + * sntrup761 uses variable length arrays and c99-style declarations after code, + * so only enable if the compiler supports them. */ -#ifdef VARIABLE_LENGTH_ARRAYS +#if defined(VARIABLE_LENGTH_ARRAYS) && defined(VARIABLE_DECLARATION_AFTER_CODE) # define USE_SNTRUP761X25519 1 #endif #endif /* _DEFINES_H */ |