Skip to content

Commit 6c95d0a

Browse files
committed
Fix preprocessor directives
1 parent e0e3a22 commit 6c95d0a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

hdr/sqlite_modern_cpp/type_wrapper.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,19 @@
44
#include <string>
55
#include <memory>
66
#include <vector>
7-
#ifdef __cplusplus >= 201703 && __has_include(<string_view>)
7+
#ifdef __has_include
8+
#if __cplusplus >= 201703 && __has_include(<string_view>)
89
#include <string_view>
910
#define STR_REF std::string_view
1011
#define U16STR_REF std::u16string_view
1112
#else
1213
#define STR_REF std::string
1314
#define U16STR_REF std::u16string
1415
#endif
16+
#else
17+
#define STR_REF std::string
18+
#define U16STR_REF std::u16string
19+
#endif
1520
#ifdef __has_include
1621
#if __cplusplus > 201402 && __has_include(<optional>)
1722
#define MODERN_SQLITE_STD_OPTIONAL_SUPPORT

0 commit comments

Comments
 (0)