Compile error in byteorder.h #44190
Unanswered
surfskidude
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I cloned the latest today and I got a compile error when I compiled my existing code, which includes net/socket.h
In file included from /home/build/zephyrproject/zephyr/include/net/net_ip.h:27,
from /home/build/zephyrproject/zephyr/include/net/socket.h:27,
/home/build/zephyrproject/zephyr/include/sys/byteorder.h:22:36: error: expected declaration specifiers or ‘...’ before ‘(’ token
22 | #define __bswap_16(x) ((uint16_t) ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8)))
| ^
/home/build/zephyrproject/zephyr/include/sys/byteorder.h:26:36: error: expected declaration specifiers or ‘...’ before ‘(’ token
26 | #define __bswap_32(x) ((uint32_t) ((((x) >> 24) & 0xff) |
| ^
/home/build/zephyrproject/zephyr/include/sys/byteorder.h:36:36: error: expected declaration specifiers or ‘...’ before ‘(’ token
36 | #define __bswap_64(x) ((uint64_t) ((((x) >> 56) & 0xff) |
| ^
Build:
west build -p auto -b native_posix_64 myproject
Beta Was this translation helpful? Give feedback.
All reactions