mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-17 13:43:01 +08:00
update 2026-08-14 20:53:13
This commit is contained in:
1 parent
bbea37a7c8
commit
58e04d6ceb
1972 files changed
+1523368
-299
No files matched your search
@@ -0,0 +1,20 @@
|
||||
diff -Naur a/include/common.h b/include/common.h
|
||||
--- a/include/common.h 2019-08-03 10:48:42.000000000 -0700
|
||||
+++ b/include/common.h 2020-03-01 19:26:14.000000000 -0800
|
||||
@@ -2,6 +2,7 @@
|
||||
#define __COMMON_H__
|
||||
|
||||
#include <stdint.h>
|
||||
+#include <endian.h>
|
||||
|
||||
#ifdef DEBUG
|
||||
#include <stdio.h>
|
||||
@@ -10,7 +11,7 @@
|
||||
#define DPRINTF(...)
|
||||
#endif
|
||||
|
||||
-#ifdef __BIG_ENDIAN__
|
||||
+#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
|
||||
|
||||
static inline uint16_t BE16(uint16_t x)
|
||||
{
|
||||
Reference in new issue
Block a user