aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-08-26 09:04:55 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-08-26 09:04:55 +0200
commitdd8c731b21e0d323fc86fc229c5ec1a1efd2ad67 (patch)
tree69fefc7ee79f94492ced22de31c1347f62e88510 /src
parent3621a04cf020cba747ba75136aec7a575890cceb (diff)
Remove unused code
Diffstat (limited to 'src')
-rw-r--r--src/common.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/common.h b/src/common.h
index c1d21c8..00382a9 100644
--- a/src/common.h
+++ b/src/common.h
@@ -5,23 +5,4 @@
# define __attribute__(x)
#endif
-/* TODO: Is this endian stuff potentially useful? */
-
-/* If C23 or newer include this to get byte-order macros */
-#if __STDC_VERSION__ >= 202311L
-# include <stdbit.h>
-#endif
-
-#if (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) \
- || (defined(__STDC_ENDIAN_NATIVE__) \
- && __STDC_ENDIAN_NATIVE__ == __STDC_ENDIAN_BIG__)
-# define ENDIAN_BIG 1
-#elif (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) \
- || (defined(__STDC_ENDIAN_NATIVE__) \
- && __STDC_ENDIAN_NATIVE__ == __STDC_ENDIAN_LITTLE__)
-# define ENDIAN_LITTLE 1
-#else
-# define ENDIAN_UNKNOWN 1
-#endif
-
#endif /* !TOTP_COMMON_H */