aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-01-22 06:39:13 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-01-22 23:24:20 +0100
commit972a9fd5d024ff60e980a0457d75d659c11df612 (patch)
treeec2f6445b2b1149e7ca6e173d1dfa4a2627530be
parent207720e399eca88230e20b82af12ea486618af74 (diff)
downloadsparse-972a9fd5d024ff60e980a0457d75d659c11df612.tar.gz
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 <luc.vanoostenryck@gmail.com>
-rw-r--r--machine.h4
1 files 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__)