Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

endian.h warning: "htons" redefined #562

Open
Harvie opened this issue Dec 5, 2020 · 0 comments
Open

endian.h warning: "htons" redefined #562

Harvie opened this issue Dec 5, 2020 · 0 comments

Comments

@Harvie
Copy link

Harvie commented Dec 5, 2020

Hello,
when i include endian.h it gives me warning that htons() is already defined in lwip... i am not sure why this happens... is endian.h expected to cotain htons()? feels to me like it more belongs to lwip... is there some way to clean this up?

In file included from /opt/Espressif/esp-idf/components/lwip/lwip/src/include/lwip/ip_addr.h:41:0,
                 from common/platforms/lwip/mg_lwip.h:27,
                 from /home/harvie/Temp/firmware-github/deps/mongoose/include/mgos_mongoose.h:30,
                 from /mongoose-os/include/mgos.h:47,
                 from /home/harvie/Temp/firmware-github/src/test.cpp:7:
/opt/Espressif/esp-idf/components/lwip/lwip/src/include/lwip/def.h:108:0: warning: "htons" redefined
 #define htons(x) lwip_htons(x)
 ^
In file included from /home/harvie/Temp/firmware-github/src/test.cpp:6:0:
/opt/Espressif/esp-idf/components/wpa_supplicant/port/include/endian.h:103:0: note: this is the location of the previous definition
 #define htons htobe16
 ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant