commit 1b603c62abd84f9282b8f23f93949df69b1746ee
parent 2f3845694a9fcad12b7c737ec4cd83eb21a65570
Author: finwo <finwo@pm.me>
Date: Wed, 4 Nov 2020 20:07:34 +0100
Fixed http-parser-statusses header
Diffstat:
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Makefile b/Makefile
@@ -1,5 +1,5 @@
http-parser-test: test.c src/http-parser.c
- $(CC) -o $@ $^
+ $(CC) -Isrc -o $@ $^
.PHONY: check
check: http-parser-test
diff --git a/src/http-parser-statusses.h b/src/http-parser-statusses.h
@@ -1,5 +1,5 @@
-#ifndef _HTTP_PARSER_H_
-#define _HTTP_PARSER_H_
+#ifndef _HTTP_PARSER_STATUSSES_H_
+#define _HTTP_PARSER_STATUSSES_H_
#ifdef __cplusplus
extern "C" {
@@ -102,4 +102,4 @@ struct {
} // extern "C"
#endif
-#endif // _HTTP_PARSER_H_
+#endif // _HTTP_PARSER_STATUSSES_H_
diff --git a/test.c b/test.c
@@ -1,7 +1,7 @@
#include <stdio.h>
#include <string.h>
-#include "src/http-parser.h"
+#include "http-parser.h"
#ifndef NULL
#define NULL ((void*)0)