From 5242adf4aca4ccad0d582cb72eee2642d891482e Mon Sep 17 00:00:00 2001 From: Dr-Noob Date: Sat, 10 Apr 2021 13:34:28 +0200 Subject: [PATCH] [v0.97] Fix compilation in macOS --- src/common/printer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/printer.c b/src/common/printer.c index 586c7ca..c619f1b 100644 --- a/src/common/printer.c +++ b/src/common/printer.c @@ -1,9 +1,11 @@ #ifdef _WIN32 #define NOMINMAX #include -#else +#elif defined __linux__ #define _POSIX_C_SOURCE 199309L #include +#elif defined __APPLE__ + #include #endif #include