Commit 074aef5
committed
[C99] Remove the tgmath.h header
Clang provides a number of headers which are required because the
compiler is the only part of the implementation which can provide the
correct macro definitions. Things like <limits.h> or <stdint.h> are
such headers.
<tgmath.h> is not something the compiler needs to provide macros for;
it is the responsibility of the C Standard Library to provide these
interfaces.
Historically, Clang has provided tgmath.h from a time when C11 was
still new and not all C Standard Libraries (such as the one from MSVC)
had correct support. Today, that's no longer the case. So this change
removes <tgmath.h> from the set of headers Clang provides and it is now
on the user to provide a conforming C Standard Library if they would
like to use this functionality.1 parent cd56666 commit 074aef5
File tree
10 files changed
+3
-1436
lines changed- clang
- docs
- lib
- Headers
- Lex
- test
- Headers
- Modules
- Inputs/builtin-headers
- www
10 files changed
+3
-1436
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
125 | 128 | | |
126 | 129 | | |
127 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | 308 | | |
314 | 309 | | |
315 | 310 | | |
| |||
0 commit comments