Skip to content

Commit a34d8d8

Browse files
Copilotyhirose
andcommitted
Add inline comment explaining why #undef _res is necessary
Co-authored-by: yhirose <357397+yhirose@users.noreply.github.com>
1 parent ac2b4ee commit a34d8d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httplib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ using socklen_t = int;
257257
#include <netinet/in.h>
258258
#ifdef __linux__
259259
#include <resolv.h>
260-
#undef _res
260+
#undef _res // Undefine _res macro to avoid conflicts with user code (#2278)
261261
#endif
262262
#include <csignal>
263263
#include <netinet/tcp.h>

0 commit comments

Comments
 (0)