diff options
Diffstat (limited to 'external/zxing/zxing_newline.patch.1')
-rw-r--r-- | external/zxing/zxing_newline.patch.1 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/external/zxing/zxing_newline.patch.1 b/external/zxing/zxing_newline.patch.1 new file mode 100644 index 000000000..57673e431 --- /dev/null +++ b/external/zxing/zxing_newline.patch.1 @@ -0,0 +1,21 @@ +Add newline at end of KRHangulMapping.h + +without this, GCC 11 -E -fdirectives-only produces this: + +extern const uint16_t ksc5601_hangul_to_unicode[2350];# 38 "/workdir/UnpackedTarball/zxing/core/src/textcodec/KRHangulMapping.cpp" 2 + +and compiling that fails with: + +KRHangulMapping.h:38:55: error: stray '#' in program + +https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100392 + +--- zxing/core/src/textcodec/KRHangulMapping.h.orig 2021-05-01 18:00:09.011795242 +0200 ++++ zxing/core/src/textcodec/KRHangulMapping.h 2021-05-01 18:00:16.774788294 +0200 +@@ -35,4 +35,4 @@ + #include <cstdint> + + /* Table including ksc5601 hangul to unicode */ +-extern const uint16_t ksc5601_hangul_to_unicode[2350]; +\ No newline at end of file ++extern const uint16_t ksc5601_hangul_to_unicode[2350]; |