Skip to content

Commit 3c59330

Browse files
author
matz
committed
* missing.h: include <stdarg.h> or <varargs.h> if HAVE_VSNPRINTF
is not defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent eac185d commit 3c59330

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Fri Mar 21 01:29:35 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
2+
3+
* missing.h: include <stdarg.h> or <varargs.h> if HAVE_VSNPRINTF
4+
is not defined.
5+
16
Thu Mar 20 18:31:37 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
27

38
* lib/optparse.rb (OptionParser#order!): follow recent change

missing.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ extern unsigned long strtoul _((char *, char **, int));
118118
#endif
119119

120120
#ifndef HAVE_VSNPRINTF
121+
# ifdef HAVE_STDARG_PROTOTYPES
122+
# include <stdarg.h>
123+
# else
124+
# include <varargs.h>
125+
# endif
121126
extern snprintf __((char *, size_t n, char const *, ...));
122127
extern vsnprintf _((char *, size_t n, char const *, va_list));
123128
#endif

0 commit comments

Comments
 (0)