@@ -1,5 +1,6 @@
#include "yaml_private.h"
+#include "helpers.h"
/*
* Get the library version.
@@ -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"
@@ -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>