Skip to content

Commit

Permalink
pkg/tinydtls: fix conflict with endian.h
Browse files Browse the repository at this point in the history
  • Loading branch information
maribu committed Jan 31, 2024
1 parent b288dfb commit 944ce26
Showing 1 changed file with 44 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
From 9b62250bf6561aed372429eb551bd75f8f5fde16 Mon Sep 17 00:00:00 2001
From: Marian Buschsieweke <marian.buschsieweke@posteo.net>
Date: Wed, 31 Jan 2024 17:58:13 +0100
Subject: [PATCH] platform-specific/riot_boards.h: fix conflict with endian.h

---
platform-specific/riot_boards.h | 23 -----------------------
1 file changed, 23 deletions(-)

diff --git a/platform-specific/riot_boards.h b/platform-specific/riot_boards.h
index f18e5ae..d7680d5 100644
--- a/platform-specific/riot_boards.h
+++ b/platform-specific/riot_boards.h
@@ -126,27 +126,4 @@
/* RIOT "supports" memset()/memcpy() BUT not bzero()/mcopy(). */
#define SHA2_USE_MEMSET_MEMCPY 1

-
-/*
- * NOTE Gcc is who define if we are big endian or little endian.
- * Because RIOT has __BYTE_ORDER__ and BYTE_ORDER it is not clear which one
- * should take preference here. Or, if the #define inside of sha2/sha2.h
- * should be removed at all.
- */
-#ifndef BIG_ENDIAN
-#if !defined(__BIG_ENDIAN__)
-# define BIG_ENDIAN 4321
-# else
-# define BIG_ENDIAN __BIG_ENDIAN__
-# endif
-#endif
-
-#ifndef LITTLE_ENDIAN
-#if !defined(__LITTLE_ENDIAN__)
-# define LITTLE_ENDIAN 1234
-# else
-# define LITTLE_ENDIAN __LITTLE_ENDIAN__
-# endif
-#endif
-
#endif /* _RIOT_BOARDS_H_ */
--
2.43.0

0 comments on commit 944ce26

Please sign in to comment.