mac: Fix <uchar.h> not available with Xcode < 14.3 (fixes #3526)

This commit is contained in:
Marshall Greenblatt
2023-06-06 14:43:20 +03:00
parent 82da225a9f
commit 30c8e3634d
3 changed files with 15 additions and 5 deletions

View File

@@ -32,7 +32,18 @@
#pragma once
#include <stddef.h>
#ifdef __clang__
// On macOS, <uchar.h> is only available with Xcode 14.3+.
#if __has_include(<uchar.h>)
#include <uchar.h>
#else
#include <stdint.h>
typedef uint_least16_t char16_t;
#endif
#else
#include <uchar.h>
#endif
#include "include/internal/cef_export.h"

View File

@@ -34,7 +34,6 @@
#include <limits.h>
#include <stddef.h>
#include <stdint.h>
#include <uchar.h>
#include "include/internal/cef_string.h"
#include "include/internal/cef_string_list.h"