Skip to content

Commit 5bad7e3

Browse files
committed
fix: handle ADA_HAS_ICU properly
1 parent 4c76670 commit 5bad7e3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

include/ada/common_defs.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,14 +206,17 @@ namespace ada {
206206

207207
#ifndef ADA_HAS_ICU
208208
#if __has_include(<unicode/uidna.h>)
209-
#include <unicode/utypes.h>
210-
#include <unicode/uidna.h>
211-
#include <unicode/utf8.h>
212209
#define ADA_HAS_ICU 1
213210
#else
214211
#define ADA_HAS_ICU 0
215212
#endif // __has_include(<unicode/uidna.h>)
216213
#endif // ADA_HAS_ICU
217214

215+
#if ADA_HAS_ICU
216+
#include <unicode/utypes.h>
217+
#include <unicode/uidna.h>
218+
#include <unicode/utf8.h>
219+
#endif // ADA_HAS_ICU
220+
218221

219222
#endif // ADA_COMMON_DEFS_H

0 commit comments

Comments
 (0)