aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib.in.h
diff options
context:
space:
mode:
authorVibhav Pant2020-08-21 14:04:35 +0530
committerVibhav Pant2020-08-21 14:04:35 +0530
commitf0f8d7b82492e741950c363a03b886965c91b1b0 (patch)
tree19b716830b1ebabc0d7d75949c4e6800c0f104ad /lib/stdlib.in.h
parent9e64a087c4d167e7ec1c4e22bea3e6af53b563de (diff)
parentc818c29771d3cb51875643b2f6c894073e429dd2 (diff)
downloademacs-feature/native-comp-macos-fixes.tar.gz
emacs-feature/native-comp-macos-fixes.zip
Merge branch 'feature/native-comp' into feature/native-comp-macos-fixesfeature/native-comp-macos-fixes
Diffstat (limited to 'lib/stdlib.in.h')
-rw-r--r--lib/stdlib.in.h29
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@