Skip to content

Commit

Permalink
Only check for GCC version if GCC is used. (#5)
Browse files Browse the repository at this point in the history
This fixes #2.
  • Loading branch information
aentinger authored Apr 13, 2023
1 parent 5efcfc1 commit 058b42a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/storage/kv_storage/littlefs/kv_littlefs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "kv_littlefs.h"

#if __GNUC__ >= 11
#if !defined(__GNUC__) || (__GNUC__ >= 11)

#include <map>
#include <string>
Expand Down Expand Up @@ -133,4 +133,4 @@ auto KeyValueStorage::drop(const std::string_view key) -> std::optional<Error>

} /* cyphal::support::platform::storage::littlefs */

#endif /* __GNUC__ >= 11 */
#endif /* !defined(__GNUC__) || (__GNUC__ >= 11) */
4 changes: 2 additions & 2 deletions src/storage/kv_storage/littlefs/kv_littlefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <107-Arduino-Cyphal.h>
#include <107-Arduino-littlefs.h>

#if __GNUC__ >= 11
#if !defined(__GNUC__) || (__GNUC__ >= 11)

/**************************************************************************************
* NAMESPACE
Expand Down Expand Up @@ -55,4 +55,4 @@ class KeyValueStorage final : public interface::KeyValueStorage

} /* cyphal::support::platform::storage::littlefs */

#endif /* __GNUC__ >= 11 */
#endif /* !defined(__GNUC__) || (__GNUC__ >= 11) */

0 comments on commit 058b42a

Please sign in to comment.