Moving YAML version definitions into config.h.
diff --git a/Makefile b/Makefile index fb4ef6b..3b2980e 100644 --- a/Makefile +++ b/Makefile
@@ -23,11 +23,6 @@ emitter.o\ CGO_LDFLAGS+=-lm -lpthread -CGO_CFLAGS+=\ - -I$(PWD) \ - -DYAML_VERSION_STRING='"0.1.3"' \ - -DYAML_VERSION_MAJOR=0 \ - -DYAML_VERSION_MINOR=1 \ - -DYAML_VERSION_PATCH=3 \ +CGO_CFLAGS+=-I$(PWD) -DHAVE_CONFIG_H=1 include $(GOROOT)/src/Make.pkg
diff --git a/config.h b/config.h new file mode 100644 index 0000000..6a3d605 --- /dev/null +++ b/config.h
@@ -0,0 +1,4 @@ +#define YAML_VERSION_STRING "0.1.3" +#define YAML_VERSION_MAJOR 0 +#define YAML_VERSION_MINOR 1 +#define YAML_VERSION_PATCH 3