summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-20 13:33:29 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-20 13:33:29 +0800
commit4ca7465b1427c550fa34ec8d91b69a7df96ce16a (patch)
tree6d43ce1c3b0c569416cc1f6bce7ad1075ffa0b57
parent88c0da9ea0b8a53d5ee5038099f3df1a5a586d4f (diff)
C needs stddef too to understand size_t
-rw-r--r--icclient/typedefs.h4
-rw-r--r--request.h1
2 files changed, 1 insertions, 4 deletions
diff --git a/icclient/typedefs.h b/icclient/typedefs.h
index 80e09b1..6876144 100644
--- a/icclient/typedefs.h
+++ b/icclient/typedefs.h
@@ -1,9 +1,7 @@
#ifndef ICCLIENT_TYPEDEFS_H
#define ICCLIENT_TYPEDEFS_H
-#ifdef __cplusplus
-#include <cstddef>
-#endif
+#include <stddef.h>
#ifdef __EMSCRIPTEN__
#include <emscripten/fetch.h>
typedef emscripten_fetch_t icclient_response;
diff --git a/request.h b/request.h
index b8752c0..3f67148 100644
--- a/request.h
+++ b/request.h
@@ -1,7 +1,6 @@
#ifndef REQUEST_H
#define REQUEST_H
-#include <stddef.h>
#include "icclient/typedefs.h"
struct body {