From 186214216aba9b17d40e2a81c5fa05b93b89e294 Mon Sep 17 00:00:00 2001 From: Dominik Loidolt <dominik.loidolt@univie.ac.at> Date: Wed, 28 Jun 2023 10:05:09 +0200 Subject: [PATCH] fix compiler warning --- include/byteorder.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/byteorder.h b/include/byteorder.h index 56bb7ef..d299ac9 100644 --- a/include/byteorder.h +++ b/include/byteorder.h @@ -53,13 +53,13 @@ #undef __LITTLE_ENDIAN #endif -#if (__sparc__) +#if defined __sparc__ #ifndef __BIG_ENDIAN #define __BIG_ENDIAN 4321 #endif #endif -#if (__i386__ || __x86_64__) +#if (defined __i386__ || defined __x86_64__) #ifndef __LITTLE_ENDIAN #define __LITTLE_ENDIAN 1234 #endif -- GitLab