Skip to content

Commit 5669597

Browse files
committed
Don't set _LIBCPP_HAS_CATOPEN
Since catopen always returns -1. (it also adds a redundant dependency to __map_file, which is still WIP)
1 parent 1a7e581 commit 5669597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/lib/libcxx/include/__config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ typedef unsigned int char32_t;
909909

910910
#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
911911
// Most unix variants have catopen. These are the specific ones that don't.
912-
# if !defined(__BIONIC__) && !defined(_NEWLIB_VERSION)
912+
# if !defined(__BIONIC__) && !defined(_NEWLIB_VERSION) && !defined(__EMSCRIPTEN__) // XXX EMSCRIPTEN catopen always returns -1
913913
# define _LIBCPP_HAS_CATOPEN 1
914914
# endif
915915
#endif

0 commit comments

Comments
 (0)