diff options
author | antirez <antirez@gmail.com> | 2020-07-02 12:58:33 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2020-07-02 12:58:33 +0200 |
commit | 22cf54f3108974ede3031b887cb944dd54b24bc0 (patch) | |
tree | f59a35a930ba09ee3851cd2210d2742a0fbd2226 /kilo.c | |
parent | 806d41273267e48611c6c1171c61afa43b88b0c0 (diff) | |
download | filo-22cf54f3108974ede3031b887cb944dd54b24bc0.tar.gz filo-22cf54f3108974ede3031b887cb944dd54b24bc0.zip |
Make Linux/Macos discoverable by macros.
Diffstat (limited to 'kilo.c')
-rw-r--r-- | kilo.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |