summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2020-07-02 12:58:33 +0200
committerantirez <antirez@gmail.com>2020-07-02 12:58:33 +0200
commit22cf54f3108974ede3031b887cb944dd54b24bc0 (patch)
treef59a35a930ba09ee3851cd2210d2742a0fbd2226
parent806d41273267e48611c6c1171c61afa43b88b0c0 (diff)
downloadfilo-22cf54f3108974ede3031b887cb944dd54b24bc0.tar.gz
filo-22cf54f3108974ede3031b887cb944dd54b24bc0.zip
Make Linux/Macos discoverable by macros.
-rw-r--r--kilo.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/kilo.c b/kilo.c
index 663e69d..c64a9ae 100644
--- a/kilo.c
+++ b/kilo.c
@@ -34,6 +34,14 @@
#define KILO_VERSION "0.0.1"
+#ifdef __APPLE__
+#include <AvailabilityMacros.h>
+#endif
+
+#ifdef __linux__
+#include <features.h>
+#endif
+
#ifdef __GLIBC__
#define _POSIX_C_SOURCE 200809L
#endif