diff options
author | Damien Miller <djm@mindrot.org> | 2024-09-09 09:30:38 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2024-09-09 09:30:38 +0200 |
commit | 273581210c99ce7275b8efdefbb9f89e1c22e341 (patch) | |
tree | 9afb17c5c11c7482fad04c3826804b8920d4d297 /defines.h | |
parent | fix previous; check for C99 compound literals (diff) | |
download | openssh-273581210c99ce7275b8efdefbb9f89e1c22e341.tar.xz openssh-273581210c99ce7275b8efdefbb9f89e1c22e341.zip |
declare defeat trying to detect C89 compilers
I can't find a reliable way to detect the features the ML-KEM code
requires in configure. Give up for now and use VLA support (that we
can detect) as a proxy for "old compiler" and turn off ML-KEM if
it isn't supported.
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -940,10 +940,8 @@ struct winsize { * so only enable if the compiler supports them. */ #if defined(VARIABLE_LENGTH_ARRAYS) && defined(VARIABLE_DECLARATION_AFTER_CODE) -# define USE_SNTRUP761X25519 1 -#endif -/* The ML-KEM768 imlementation similarly uses C99 compound literals */ -#ifdef COMPOUND_LITERALS +# define USE_SNTRUP761X25519 1 +/* The ML-KEM768 implementation also uses C89 features */ # define USE_MLKEM768X25519 1 #endif #endif /* _DEFINES_H */ |