Skip to content

Commit 75f637e

Browse files
committed
src: fix ngtcp2 and nghttp3 detection
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent b59840b commit 75f637e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/node_metadata.cc‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
#endif
4040
#endif // HAVE_OPENSSL
4141

42-
#ifndef OPENSSL_NO_QUIC
42+
#ifndef HAVE_QUIC
4343
#include <ngtcp2/version.h>
4444
#include <nghttp3/version.h>
45-
#endif
45+
#endif // HAVE_QUIC
4646

4747
#ifdef NODE_HAVE_I18N_SUPPORT
4848
#include <unicode/timezone.h>
@@ -162,10 +162,10 @@ Metadata::Versions::Versions() {
162162
unicode = U_UNICODE_VERSION;
163163
#endif // NODE_HAVE_I18N_SUPPORT
164164

165-
#ifndef OPENSSL_NO_QUIC
165+
#ifndef HAVE_QUIC
166166
ngtcp2 = NGTCP2_VERSION;
167167
nghttp3 = NGHTTP3_VERSION;
168-
#endif
168+
#endif // HAVE_QUIC
169169

170170
simdjson = SIMDJSON_VERSION;
171171
simdutf = SIMDUTF_VERSION;

0 commit comments

Comments
 (0)