Skip to content

Commit 9f19a52

Browse files
authored
Revert a worksaround for a libc++ / ctype issue. NFC (#20958)
Undefining these macros was hurting code size for us. These changes were originally made in #1740 as a fix for #1716 but they appear to no longer be necessary. I verified that I can build the failing program from #1716 using em++ today.
1 parent 639e817 commit 9f19a52

18 files changed

+23
-87
lines changed

system/include/compat/ctype.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,4 @@
1414

1515
#include_next <ctype.h>
1616

17-
/* We undef these until libcxx is fixed. Without this,
18-
some things can fail to compile correctly, like
19-
Boost. Issue #1716. */
20-
21-
#undef isalpha
22-
#undef isblank
23-
#undef iscntrl
24-
#undef isdigit
25-
#undef isgraph
26-
#undef islower
27-
#undef isprint
28-
#undef ispunct
29-
#undef isspace
30-
#undef isupper
31-
#undef isxdigit
32-
#undef isctype
33-
3417
#endif /* _COMPAT_CTYPE_H_ */

system/include/compat/wchar.h

Lines changed: 0 additions & 23 deletions
This file was deleted.

system/include/compat/wctype.h

Lines changed: 0 additions & 23 deletions
This file was deleted.

test/code_size/embind_val_wasm.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"a.html.gz": 431,
44
"a.js": 7468,
55
"a.js.gz": 3137,
6-
"a.wasm": 11501,
7-
"a.wasm.gz": 5766,
8-
"total": 19642,
9-
"total_gz": 9334
6+
"a.wasm": 11458,
7+
"a.wasm.gz": 5733,
8+
"total": 19599,
9+
"total_gz": 9301
1010
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"a.html": 12794,
3-
"a.html.gz": 7006,
4-
"total": 12794,
5-
"total_gz": 7006
2+
"a.html": 12734,
3+
"a.html.gz": 6983,
4+
"total": 12734,
5+
"total_gz": 6983
66
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"a.html": 17365,
3-
"a.html.gz": 7567,
4-
"total": 17365,
5-
"total_gz": 7567
2+
"a.html": 17329,
3+
"a.html.gz": 7543,
4+
"total": 17329,
5+
"total_gz": 7543
66
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
125899
1+
125859
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
125369
1+
125329
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
168151
1+
168118
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
139331
1+
139293

0 commit comments

Comments
 (0)