From 7f98fd6d769706aa747389ddb5f7426f99c7a9a6 Mon Sep 17 00:00:00 2001 From: Gunnar Nitsche Date: Wed, 29 Apr 2020 12:39:27 +0200 Subject: [PATCH] fixed C Standard's version detection --- bno055.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bno055.h b/bno055.h index fcdcce5..b570a9d 100644 --- a/bno055.h +++ b/bno055.h @@ -78,7 +78,7 @@ typedef u_int64_t u64; /**< used for unsigned 64bit */ * These definition uses for define the C * standard version data types ***********************************************************/ -# if !defined(__STDC_VERSION__) +#if defined(__STDC_VERSION__) /************************************************ * compiler is C11 C standard @@ -128,7 +128,7 @@ typedef int64_t s64; /**< used for signed 64bit */ * compiler is C89 or other C standard ************************************************/ -#else /* !defined(__STDC_VERSION__) */ +#else /* defined(__STDC_VERSION__) */ /*! * @brief By default it is defined as 32 bit machine configuration