Trying to get goyaml to build on Windows.
diff --git a/api.c b/api.c
index 0c4732e..d513abc 100644
--- a/api.c
+++ b/api.c
@@ -1,5 +1,6 @@
#include "yaml_private.h"
+#include "helpers.h"
/*
* Get the library version.
diff --git a/decode.go b/decode.go
index 2e00362..6f209f4 100644
--- a/decode.go
+++ b/decode.go
@@ -1,6 +1,8 @@
package goyaml
// #cgo LDFLAGS: -lm -lpthread
+// #cgo windows LDFLAGS: -L. -lyaml
+// #cgo windows CFLAGS: -DYAML_DECLARE_STATIC=1
// #cgo CFLAGS: -I. -DHAVE_CONFIG_H=1
//
// #include "helpers.h"
diff --git a/helpers.h b/helpers.h
index e4d8639..0a2efaa 100644
--- a/helpers.h
+++ b/helpers.h
@@ -1,8 +1,9 @@
#ifndef helpers_h
#define helpers_h
-#define CGO_LDFLAGS "-lm -lpthread"
-#define CGO_CFLAGS "-I. -DHAVE_CONFIG_H=1"
+#ifdef _WIN32
+#define strdup _strdup
+#endif
#include <yaml.h>