aboutsummaryrefslogtreecommitdiff
path: root/lib/mime.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-04-24 12:29:49 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-04-24 12:29:49 -0400
commit436ce68ecd41ad66e7a0605b47b5814582db8538 (patch)
tree4c54676d3ef16f3cae4244f94bdb1cb23a514926 /lib/mime.c
parentd570692d29d5dade7882ee19ca8d992a8960201d (diff)
downloadspmc-436ce68ecd41ad66e7a0605b47b5814582db8538.tar.gz
Consolidate platform detection preprocessor checks
Diffstat (limited to 'lib/mime.c')
-rw-r--r--lib/mime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mime.c b/lib/mime.c
index 9e4bdce..9d0205c 100644
--- a/lib/mime.c
+++ b/lib/mime.c
@@ -14,7 +14,7 @@ Process *file_command(const char *_filename) {
Process *proc_info = NULL;
char sh_cmd[PATH_MAX];
sh_cmd[0] = '\0';
-#ifdef __APPLE__
+#if OS_DARWIN
const char *fmt_cmd = "file -I \"%s\" 2>&1";
#else // GNU
const char *fmt_cmd = "file -i \"%s\" 2>&1";