-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
rename XX macro in http_parser.h (IDFGH-1523) #3787
Comments
@freedaun I would suggest submitting this upstream (https://github.com/nodejs/http-parser). We can then update our copy of http_parser, and also move it into a submodule for easier maintenance in the future. |
Well, I got the reference from your github, the http_server. But now I see there is an official supported "esp_http_server.h", so I'd better use that. But I'll follow your suggestion anyway. I really need to implement websockets. I found https://github.com/Molorius/esp32-websocket and am working backwards from that, substituting the http_server part. Maybe the Arduino stuff would be better but there's a knowledge gap with the arduino world. It would seem the ESP32 is REALLY in need of a native websocket implementation (example), as it is relatively simple and the preferred way to connect to web and mobile apps. Using native Wifi access has been a complete disaster because of different Android versions (and even manufacturers/models!). Thanks. |
|
@freedaun It seems like |
Environment
IDF: v4.0-dev-1275-gfdab15dc7, Windows 10
Problem Description
I got a conflict with http_parser.h, which uses the same macro name:
Code to reproduce this issue
#define XX(x) something
Proposed solution
Never use non-descript unqualified macro-names in libs, as these identifier belong to the user and end up breaking their code. So either qualify the define and rename it HTTP_PARSER_XX(), or use the standard X-macro name convention ENTRY().
The text was updated successfully, but these errors were encountered: