From 0a9060e335d59f0ccaf5d9600abbcb938db30928 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 23 Jan 2024 16:06:31 +0100 Subject: Bump librune version --- vendor/librune/include/internal/common.h | 2 ++ vendor/librune/include/internal/gbrk_lookup.h | 1 + vendor/librune/include/internal/types.h | 8 ++++---- 3 files changed, 7 insertions(+), 4 deletions(-) (limited to 'vendor/librune/include/internal') diff --git a/vendor/librune/include/internal/common.h b/vendor/librune/include/internal/common.h index 7107528..af490d3 100644 --- a/vendor/librune/include/internal/common.h +++ b/vendor/librune/include/internal/common.h @@ -1,6 +1,8 @@ #ifndef RUNE_INTERNAL_COMMON_H #define RUNE_INTERNAL_COMMON_H +/* IWYU pragma: private */ + #if __STDC_VERSION__ >= 202311L # define RUNE_IS_23 1 #endif diff --git a/vendor/librune/include/internal/gbrk_lookup.h b/vendor/librune/include/internal/gbrk_lookup.h index 39dfa8e..043be97 100644 --- a/vendor/librune/include/internal/gbrk_lookup.h +++ b/vendor/librune/include/internal/gbrk_lookup.h @@ -5,6 +5,7 @@ #ifndef RUNE_INTERNAL_GBRK_LOOKUP_H #define RUNE_INTERNAL_GBRK_LOOKUP_H +/* IWYU pragma: private */ /* clang-format off */ #include "types.h" diff --git a/vendor/librune/include/internal/types.h b/vendor/librune/include/internal/types.h index b2fa34c..b7ce6f1 100644 --- a/vendor/librune/include/internal/types.h +++ b/vendor/librune/include/internal/types.h @@ -1,5 +1,4 @@ -#ifndef RUNE_INTERNAL_TYPES_H -#define RUNE_INTERNAL_TYPES_H +/* IWYU pragma: private */ #include /* IWYU pragma: export */ #include @@ -8,10 +7,11 @@ typedef unsigned char char8_t; typedef uint_least32_t rune; #if _RUNE_NEEDS_U8VIEW +# if !_RUNE_HAS_U8VIEW struct u8view { const char8_t *p; size_t len; }; +# define _RUNE_HAS_U8VIEW 1 +# endif #endif - -#endif /* !RUNE_INTERNAL_TYPES_H */ -- cgit v1.2.3