Commits

Tommaso Urli committed 54920b8

Fixed build for cygwin (1.7) on Windows (7).

Comments (0)

Files changed (2)

 all: test
 
 test: json_st.cc json_st.hh test.cc json.tab.c lex.yy.c
-	g++ -O3 -std=c++11 $^ -o $@	
+	g++ -O3 -std=gnu++11 $^ -o $@	
 
 json.tab.c: json.y
 	bison -d json.y
 
     #include <iostream>
     #include <cstring>
+    #include <stdio.h>
     #include <stdexcept>
     #include "json_st.hh"
     
 void yyerror(const char *s)
 {
     fprintf(stderr, "error: %s\n", s);
-}
+}