Commit ba53d6b
authored
Remove incorrect forward-declaration of lgamma_r header
libc++ declares `lgamma_r` as:
```
extern "C" double lgamma_r(double, int *);
```
while modern glibc uses the following:
```
__MATHCALL (lgamma,_r, (_Mdouble_, int *__signgamp));
```
This causes (I did not digged to the very bottom of it) the following compilation error when compiling with nvcc:
```
libcxx/include/__random/binomial_distribution.h(117): error: linkage specification is incompatible with previous "lgamma_r"
/usr/include/x86_64-linux-gnu/bits/mathcalls.h(271): here
```1 parent 89ad31f commit ba53d6b
1 file changed
+0
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | 100 | | |
105 | 101 | | |
106 | 102 | | |
| |||
0 commit comments