diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-09-11 02:32:06 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-09-11 02:34:10 +0900 |
commit | 8fc49d2a86bb2449e526dc78243902b5649960db (patch) | |
tree | 2249abc19373cd46cd5363d74f48686e367040bc /ext/win32ole | |
parent | 3bb183188d5ee8adee9ac36f7983853dc2f1a836 (diff) | |
download | ruby-8fc49d2a86bb2449e526dc78243902b5649960db.tar.gz |
don't check for stdargwip-topic/dont-check-prototype-arg-support
Diffstat (limited to 'ext/win32ole')
-rw-r--r-- | ext/win32ole/win32ole.h | 6 | ||||
-rw-r--r-- | ext/win32ole/win32ole_error.c | 2 |
2 files changed, 1 insertions, 7 deletions
diff --git a/ext/win32ole/win32ole.h b/ext/win32ole/win32ole.h index d61f5e23b4..733518e3cd 100644 --- a/ext/win32ole/win32ole.h +++ b/ext/win32ole/win32ole.h @@ -26,13 +26,7 @@ #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); |