aboutsummaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-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);