summaryrefslogtreecommitdiff
path: root/ext/ffi_c/Variadic.c
diff options
context:
space:
mode:
authorunknown <ddd@ddd-3360f88277224.(none)>2012-01-09 10:53:11 +0900
committerunknown <ddd@ddd-3360f88277224.(none)>2012-01-09 10:53:11 +0900
commitaa2d7fcccbe3a6c7ac294568b6c8dc6a1dbc4280 (patch)
treeeb857e9f38a8b1d41bd2aeb3f708d5af6554eb54 /ext/ffi_c/Variadic.c
parent530e08c290bef7c330085e9016575f68d4134a5e (diff)
downloadffi-aa2d7fcccbe3a6c7ac294568b6c8dc6a1dbc4280.tar.gz
initial release
Diffstat (limited to 'ext/ffi_c/Variadic.c')
-rw-r--r--ext/ffi_c/Variadic.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/ffi_c/Variadic.c b/ext/ffi_c/Variadic.c
index 5b27d90..ec5caf4 100644
--- a/ext/ffi_c/Variadic.c
+++ b/ext/ffi_c/Variadic.c
@@ -17,12 +17,20 @@
* version 3 along with this work. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifndef _MSC_VER
#include <sys/param.h>
+#endif
#include <sys/types.h>
#include <stdio.h>
+#ifndef _MSC_VER
#include <stdint.h>
#include <stdbool.h>
+#else
+typedef int bool;
+#define true 1
+#define false 0
+#endif
#include <ruby.h>
#include <ffi.h>