diff options
Diffstat (limited to 'lib/stdlib.in.h')
| -rw-r--r-- | lib/stdlib.in.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index 46e10dba972..ee643247d85 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h | |||
| @@ -520,6 +520,29 @@ _GL_CXXALIAS_SYS (putenv, int, (char *string)); | |||
| 520 | _GL_CXXALIASWARN (putenv); | 520 | _GL_CXXALIASWARN (putenv); |
| 521 | #endif | 521 | #endif |
| 522 | 522 | ||
| 523 | #if @GNULIB_QSORT_R@ | ||
| 524 | # if @REPLACE_QSORT_R@ | ||
| 525 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 526 | # undef qsort_r | ||
| 527 | # define qsort_r rpl_qsort_r | ||
| 528 | # endif | ||
| 529 | _GL_FUNCDECL_RPL (qsort_r, void, (void *base, size_t nmemb, size_t size, | ||
| 530 | int (*compare) (void const *, void const *, | ||
| 531 | void *), | ||
| 532 | void *arg) _GL_ARG_NONNULL ((1, 4))); | ||
| 533 | _GL_CXXALIAS_RPL (qsort_r, void, (void *base, size_t nmemb, size_t size, | ||
| 534 | int (*compare) (void const *, void const *, | ||
| 535 | void *), | ||
| 536 | void *arg)); | ||
| 537 | # else | ||
| 538 | _GL_CXXALIAS_SYS (qsort_r, void, (void *base, size_t nmemb, size_t size, | ||
| 539 | int (*compare) (void const *, void const *, | ||
| 540 | void *), | ||
| 541 | void *arg)); | ||
| 542 | # endif | ||
| 543 | _GL_CXXALIASWARN (qsort_r); | ||
| 544 | #endif | ||
| 545 | |||
| 523 | 546 | ||
| 524 | #if @GNULIB_RANDOM_R@ | 547 | #if @GNULIB_RANDOM_R@ |
| 525 | # if !@HAVE_RANDOM_R@ | 548 | # if !@HAVE_RANDOM_R@ |