diff options
| author | Sam Varshavchik | 2022-05-22 23:57:54 -0400 |
|---|---|---|
| committer | Sam Varshavchik | 2022-05-22 23:57:54 -0400 |
| commit | 545e97ccb9facf67865f8f758053d440e9076de0 (patch) | |
| tree | c95472629c757a5a24fd773338c51e98f24e613f /unicode/m4/courier-unicode.m4 | |
| parent | 83e37efc8ed785cd095eb585ff747e5702ec49b3 (diff) | |
| download | courier-libs-545e97ccb9facf67865f8f758053d440e9076de0.tar.bz2 | |
Additional gcc 12 and C++20 fixes.
Diffstat (limited to 'unicode/m4/courier-unicode.m4')
| -rw-r--r-- | unicode/m4/courier-unicode.m4 | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/unicode/m4/courier-unicode.m4 b/unicode/m4/courier-unicode.m4 index 9619b45..f31ebfc 100644 --- a/unicode/m4/courier-unicode.m4 +++ b/unicode/m4/courier-unicode.m4 @@ -13,9 +13,14 @@ AC_LANG_PUSH([C++]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <string> + +void func(std::u32string, char32_t); + ]], [[ std::u32string s; - char32_t c; + char32_t c=0; + + func(s, c); ]])], [ ], @@ -26,9 +31,14 @@ CXXFLAGS="$save_CFLAGS $COURIER_UNICODE_CXXFLAGS" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <string> + +void func(std::u32string, char32_t); + ]], [[ std::u32string s; - char32_t c; + char32_t c=0; + + func(s, c); ]])], [ ], @@ -39,9 +49,14 @@ CXXFLAGS="$save_CFLAGS $COURIER_UNICODE_CXXFLAGS" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <string> + +void func(std::u32string, char32_t); + ]], [[ std::u32string s; - char32_t c; + char32_t c=0; + + func(s, c); ]])], [ ], |
