summaryrefslogtreecommitdiff
path: root/lolcat.c
diff options
context:
space:
mode:
Diffstat (limited to 'lolcat.c')
-rw-r--r--lolcat.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lolcat.c b/lolcat.c
index 9e9cdc5..687f259 100644
--- a/lolcat.c
+++ b/lolcat.c
@@ -13,8 +13,6 @@
* 0. You just DO WHAT THE FUCK YOU WANT TO.
*/
-#define _GNU_SOURCE //for fmemopen
-
#include <stdint.h>
#include <stdio.h>
#include <wchar.h>
@@ -27,6 +25,12 @@
#include <unistd.h>
#include <sys/time.h>
+#ifdef __APPLE__
+#include "fmemopen.h"
+#else // __APPLE__
+#define _GNU_SOURCE //for fmemopen
+#endif // __APPLE__
+
static char helpstr[] = "\n"
"Usage: lolcat [-h horizontal_speed] [-v vertical_speed] [--] [FILES...]\n"