From cc56e1e10022f64c084d8e9250296999e04c0864 Mon Sep 17 00:00:00 2001 From: pepe <35840364+pepe82sh@users.noreply.github.com> Date: Mon, 15 Jan 2024 22:13:15 +0100 Subject: [PATCH] Add flags for gcc unix detection in compiler_port.h compiler_port.h failed to create proper printf symbols for gcc on FreeBSD. The macro setting it considered linux only, but not unix. --- compiler_port.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler_port.h b/compiler_port.h index 6d7f48a..a69d00d 100644 --- a/compiler_port.h +++ b/compiler_port.h @@ -106,7 +106,7 @@ typedef unsigned int uint_t; #define PRIXSIZE "X" #define PRIuTIME "lu" //Linux GCC compiler -#elif defined(__linux__) +#elif defined(__linux__) | defined(__unix__) #define PRIuSIZE "zu" #define PRIXSIZE "zX" #define PRIuTIME "lu"