forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5758685
committed
Fix8a934d6 for libc++ and make more include order resistant.
The previous definition was used in C++ mode, which causes problemswhen using clang with libc++ (rather than libstdc++), due to bugstherein. So just avoid in C++ mode.A second problem is that depending on include order and implicitincludes the previous definition did not guarantee that the currenthack was effective by the time isinf was used, fix that by forcingmath.h to be included. This can cause clang using builds, or gccusing ones with JIT enabled, to slow down noticably.It's likely that we at some point want a better solution for theperformance problem, but while it's there it should better work.Reported-By: Steven WinfieldBug: #15270Discussion:https://postgr.es/m/153116283147.1401.360416241833049560@wrigleys.postgresql.orgAuthor: Andres FreundBackpatch: 11, like the previous commit.1 parent115bf1e commit5758685
1 file changed
+6
-3
lines changedLines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
347 | 347 |
| |
348 | 348 |
| |
349 | 349 |
| |
350 |
| - | |
| 350 | + | |
| 351 | + | |
351 | 352 |
| |
352 |
| - | |
| 353 | + | |
353 | 354 |
| |
354 | 355 |
| |
| 356 | + | |
| 357 | + | |
355 | 358 |
| |
356 | 359 |
| |
357 | 360 |
| |
358 |
| - | |
| 361 | + | |
359 | 362 |
| |
360 | 363 |
| |
361 | 364 |
| |
|
0 commit comments
Comments
(0)