From 71b8e89f827b001d10f464a2ce333c9c6d223eff Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Sat, 29 Jun 2024 13:07:50 +0200 Subject: [PATCH] simplified preprocessor logic --- lib/pclsync/pcompat.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/pclsync/pcompat.h b/lib/pclsync/pcompat.h index eeb3f3d..0aea671 100644 --- a/lib/pclsync/pcompat.h +++ b/lib/pclsync/pcompat.h @@ -38,16 +38,17 @@ // XXX: goal is to remove // --- #if defined(__linux__) +// linux os +#ifndef P_OS_LINUX // HACK: need to rework includes #define P_OS_LINUX #endif - -#if defined(P_OS_LINUX) #define P_OS_ID 7 // linux #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #else -#define P_OS_ID 0 // non-linux posix-compliant OS +// non-linux posix-compliant OS +#define P_OS_ID 0 #endif