Skip to content

Commit 827f749

Browse files
committed
Fix missing includes on Apple and FreeBSD
1 parent f4b9f31 commit 827f749

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

libcxx/include/__locale_dir/locale_base_api/apple.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010
#ifndef _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_APPLE_H
1111
#define _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_APPLE_H
1212

13+
#include <__config>
14+
#include <string.h>
15+
#include <time.h>
16+
#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
17+
# include <wctype.h>
18+
#endif
19+
1320
#include <xlocale.h>
1421

1522
#endif // _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_APPLE_H

libcxx/include/__locale_dir/locale_base_api/freebsd.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010
#ifndef _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_FREEBSD_H
1111
#define _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_FREEBSD_H
1212

13+
#include <__config>
14+
#include <string.h>
15+
#include <time.h>
16+
#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
17+
# include <wctype.h>
18+
#endif
19+
1320
#include <xlocale.h>
1421

1522
#endif // _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_FREEBSD_H

0 commit comments

Comments
 (0)