From 972a9fd5d024ff60e980a0457d75d659c11df612 Mon Sep 17 00:00:00 2001 From: Luc Van Oostenryck Date: Wed, 22 Jan 2020 06:39:13 +0100 Subject: allow to easily test if the OS is UNIX-like Only on UNIX-like OSes are __unix__ & __unix predefined, so it's needed to easily test if the OS is UNIX-like or not. Let's do this cheaply by moving all the define of UNIX-like OSes after the define for 'generic UNIX': OS_UNIX. Signed-off-by: Luc Van Oostenryck --- machine.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/machine.h b/machine.h index fdd5c68f..0394bda8 100644 --- a/machine.h +++ b/machine.h @@ -87,6 +87,8 @@ enum fp_abi { enum { + OS_UNKNOWN, + OS_UNIX, OS_CYGWIN, OS_DARWIN, OS_FREEBSD, @@ -94,8 +96,6 @@ enum { OS_NETBSD, OS_OPENBSD, OS_SUNOS, - OS_UNIX, - OS_UNKNOWN, }; #if defined(__CYGWIN__) -- cgit 1.2.3-korg