Skip to content

Commit 6da2c29

Browse files
committed
Fix broken detection for QLJS_HAVE_NS_GET_ENVIRON
QLJS_HAVE_CRT_EXTERNS_H is always defined. We intended to check if it's 0 or 1, not check if it is defined.
1 parent 3f571a7 commit 6da2c29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/quick-lint-js/have.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192
#endif
193193

194194
#if !defined(QLJS_HAVE_NS_GET_ENVIRON)
195-
#if defined(QLJS_HAVE_CRT_EXTERNS_H)
195+
#if QLJS_HAVE_CRT_EXTERNS_H
196196
#define QLJS_HAVE_NS_GET_ENVIRON 1
197197
#else
198198
#define QLJS_HAVE_NS_GET_ENVIRON 0

0 commit comments

Comments
 (0)