From 22cf54f3108974ede3031b887cb944dd54b24bc0 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 2 Jul 2020 12:58:33 +0200 Subject: Make Linux/Macos discoverable by macros. --- kilo.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'kilo.c') 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 +#endif + +#ifdef __linux__ +#include +#endif + #ifdef __GLIBC__ #define _POSIX_C_SOURCE 200809L #endif -- cgit v1.2.3