diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-08-31 15:18:16 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-08-31 15:18:16 -0700 |
commit | 519336827fe196d859634fc3cb9098d24e276945 (patch) | |
tree | 0a6e1e1c854b193fa348a2ae765339b01d84c88e /nt | |
parent | b14908bf9d489b41b398b9dc22807d01a1ffa03f (diff) | |
download | emacs-519336827fe196d859634fc3cb9098d24e276945.tar.gz |
Add a stub for snprintf, for ancient hosts lacking it.
* configure.in (snprintf): New check.
* nt/config.nt (HAVE_SNPRINTF): New macro.
* src/sysdep.c (snprintf) [! HAVE_SNPRINTF]: New function.
Diffstat (limited to 'nt')
-rw-r--r-- | nt/ChangeLog | 4 | ||||
-rw-r--r-- | nt/config.nt | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog index 299f97bebec..ae9bfbb6081 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog @@ -1,3 +1,7 @@ +2011-08-31 Paul Eggert <eggert@cs.ucla.edu> + + * config.nt (HAVE_SNPRINTF): New macro. + 2011-07-28 Paul Eggert <eggert@cs.ucla.edu> Assume freestanding C89 headers, string.h, stdlib.h. diff --git a/nt/config.nt b/nt/config.nt index 3436bc989e0..ae3807538c0 100644 --- a/nt/config.nt +++ b/nt/config.nt @@ -240,6 +240,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #define HAVE_SETSOCKOPT 1 #define HAVE_GETSOCKNAME 1 #define HAVE_GETPEERNAME 1 +#define HAVE_SNPRINTF 1 #define HAVE_LANGINFO_CODESET 1 /* Local (unix) sockets are not supported. */ #undef HAVE_SYS_UN_H |