diff options
Diffstat (limited to 'lib/stdlib.in.h')
| -rw-r--r-- | lib/stdlib.in.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index 5c598a275d1..47a1309e633 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h | |||
| @@ -217,6 +217,21 @@ _GL_WARN_ON_USE (canonicalize_file_name, | |||
| 217 | # endif | 217 | # endif |
| 218 | #endif | 218 | #endif |
| 219 | 219 | ||
| 220 | #if defined _WIN32 && !defined __CYGWIN__ | ||
| 221 | # undef ecvt | ||
| 222 | # define ecvt _ecvt | ||
| 223 | #endif | ||
| 224 | |||
| 225 | #if defined _WIN32 && !defined __CYGWIN__ | ||
| 226 | # undef fcvt | ||
| 227 | # define fcvt _fcvt | ||
| 228 | #endif | ||
| 229 | |||
| 230 | #if defined _WIN32 && !defined __CYGWIN__ | ||
| 231 | # undef gcvt | ||
| 232 | # define gcvt _gcvt | ||
| 233 | #endif | ||
| 234 | |||
| 220 | #if @GNULIB_GETLOADAVG@ | 235 | #if @GNULIB_GETLOADAVG@ |
| 221 | /* Store max(NELEM,3) load average numbers in LOADAVG[]. | 236 | /* Store max(NELEM,3) load average numbers in LOADAVG[]. |
| 222 | The three numbers are the load average of the last 1 minute, the last 5 | 237 | The three numbers are the load average of the last 1 minute, the last 5 |
| @@ -468,6 +483,11 @@ _GL_WARN_ON_USE (mkstemps, "mkstemps is unportable - " | |||
| 468 | # endif | 483 | # endif |
| 469 | #endif | 484 | #endif |
| 470 | 485 | ||
| 486 | #if defined _WIN32 && !defined __CYGWIN__ | ||
| 487 | # undef mktemp | ||
| 488 | # define mktemp _mktemp | ||
| 489 | #endif | ||
| 490 | |||
| 471 | #if @GNULIB_POSIX_OPENPT@ | 491 | #if @GNULIB_POSIX_OPENPT@ |
| 472 | /* Return an FD open to the master side of a pseudo-terminal. Flags should | 492 | /* Return an FD open to the master side of a pseudo-terminal. Flags should |
| 473 | include O_RDWR, and may also include O_NOCTTY. */ | 493 | include O_RDWR, and may also include O_NOCTTY. */ |
| @@ -546,10 +566,19 @@ _GL_WARN_ON_USE (ptsname_r, "ptsname_r is not portable - " | |||
| 546 | # endif | 566 | # endif |
| 547 | _GL_FUNCDECL_RPL (putenv, int, (char *string) _GL_ARG_NONNULL ((1))); | 567 | _GL_FUNCDECL_RPL (putenv, int, (char *string) _GL_ARG_NONNULL ((1))); |
| 548 | _GL_CXXALIAS_RPL (putenv, int, (char *string)); | 568 | _GL_CXXALIAS_RPL (putenv, int, (char *string)); |
| 569 | # elif defined _WIN32 && !defined __CYGWIN__ | ||
| 570 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 571 | # undef putenv | ||
| 572 | # define putenv _putenv | ||
| 573 | # endif | ||
| 574 | _GL_CXXALIAS_MDA (putenv, int, (char *string)); | ||
| 549 | # else | 575 | # else |
| 550 | _GL_CXXALIAS_SYS (putenv, int, (char *string)); | 576 | _GL_CXXALIAS_SYS (putenv, int, (char *string)); |
| 551 | # endif | 577 | # endif |
| 552 | _GL_CXXALIASWARN (putenv); | 578 | _GL_CXXALIASWARN (putenv); |
| 579 | #elif defined _WIN32 && !defined __CYGWIN__ | ||
| 580 | # undef putenv | ||
| 581 | # define putenv _putenv | ||
| 553 | #endif | 582 | #endif |
| 554 | 583 | ||
| 555 | #if @GNULIB_QSORT_R@ | 584 | #if @GNULIB_QSORT_R@ |