aboutsummaryrefslogtreecommitdiffstats
path: root/ext/win32ole
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-09-11 02:32:06 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-09-11 02:34:10 +0900
commit8fc49d2a86bb2449e526dc78243902b5649960db (patch)
tree2249abc19373cd46cd5363d74f48686e367040bc /ext/win32ole
parent3bb183188d5ee8adee9ac36f7983853dc2f1a836 (diff)
downloadruby-8fc49d2a86bb2449e526dc78243902b5649960db.tar.gz
Diffstat (limited to 'ext/win32ole')
-rw-r--r--ext/win32ole/win32ole.h6
-rw-r--r--ext/win32ole/win32ole_error.c2
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);