diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2017-04-14 09:59:15 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2017-09-09 16:32:29 +0900 |
commit | 18846cf7d152cf545154d13da5fb2ca365d28ed1 (patch) | |
tree | cfa69258d58cbfbaccf7fb9324da209bf8535baa /ext | |
parent | 434fd3f01b1d08011dbe8d252bab57265dde53da (diff) | |
download | ruby-18846cf7d152cf545154d13da5fb2ca365d28ed1.tar.gz |
configure.in: assume stdarg.h exists
It is part of C89.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/win32ole/win32ole.h | 7 | ||||
-rw-r--r-- | ext/win32ole/win32ole_error.c | 2 |
2 files changed, 1 insertions, 8 deletions
diff --git a/ext/win32ole/win32ole.h b/ext/win32ole/win32ole.h index c019930397..0c4e6c3163 100644 --- a/ext/win32ole/win32ole.h +++ b/ext/win32ole/win32ole.h @@ -26,13 +26,6 @@ #endif #include <stdlib.h> #include <math.h> -#ifdef HAVE_STDARG_PROTOTYPES -#include <stdarg.h> -#define va_init_list(a,b) va_start(a,b) -#else -#include <varargs.h> -#define va_init_list(a,b) va_start(a) -#endif #include <objidl.h> #define DOUT fprintf(stderr,"%s(%d)\n", __FILE__, __LINE__) diff --git a/ext/win32ole/win32ole_error.c b/ext/win32ole/win32ole_error.c index 62e69b186c..17fc195038 100644 --- a/ext/win32ole/win32ole_error.c +++ b/ext/win32ole/win32ole_error.c @@ -48,7 +48,7 @@ ole_raise(HRESULT hr, VALUE ecs, const char *fmt, ...) va_list args; VALUE msg; VALUE err_msg; - va_init_list(args, fmt); + va_start(args, fmt); msg = rb_vsprintf(fmt, args); va_end(args); |