diff options
author | jaseg <code@jaseg.net> | 2016-04-28 22:30:18 +0200 |
---|---|---|
committer | jaseg <code@jaseg.net> | 2016-04-28 22:40:14 +0200 |
commit | 9f3492f131cd6faac5c24e9c829f4f70a108ee26 (patch) | |
tree | 56d351d73105cdac7bee644186fd7b3488cbb4b3 /lolcat.c | |
parent | 64e25bef9c8e797f2c1af2f73b8faa6c46456fef (diff) | |
download | lolcat-9f3492f131cd6faac5c24e9c829f4f70a108ee26.tar.gz lolcat-9f3492f131cd6faac5c24e9c829f4f70a108ee26.tar.bz2 lolcat-9f3492f131cd6faac5c24e9c829f4f70a108ee26.zip |
Compile dynamically linked executables on MacOS
Diffstat (limited to 'lolcat.c')
-rw-r--r-- | lolcat.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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" |