-
-
Notifications
You must be signed in to change notification settings - Fork 6.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
tests/server/util.h: align WIN32 condition with util.c #8594
Conversation
This looks fine except for warnless.h which does not start with a |
I think at this point nobody outside the project is using curlx separately or curl_setup.h includes fine for them? I don't understand how that could be though. I think it's fine to add |
I would presume that all current users of |
There is no need to test for both _WIN32 and WIN32 as curl_setup.h automatically defines the later if the first one is defined. Also tests/server/util.c is only checking for WIN32 arouund the implementation of win32_perror, so just defining _WIN32 would not be sufficient for a successful compilation. Reviewed-by: Daniel Stenberg Reviewed-by: Jay Satiro Closes curl#8594
curl_setup.h automatically defines WIN32 if just _WIN32 is defined. Therefore make sure curl_setup.h is included through warnless.h. Reviewed-by: Daniel Stenberg Reviewed-by: Jay Satiro Closes curl#8594
f52d2ae
to
bdca4f5
Compare
curl_setup.h automatically defines WIN32 if just _WIN32 is defined. Therefore make sure curl_setup.h is included through warnless.h. Reviewed-by: Daniel Stenberg Reviewed-by: Jay Satiro Closes #8594
tests/server/util.h: align WIN32 condition with util.c
There is no need to test for both _WIN32 and WIN32 as curl_setup.h
automatically defines the later if the first one is defined.
Also tests/server/util.c is only checking for WIN32 arouund the
implementation of win32_perror, so just defining _WIN32
would not be sufficient for a successful compilation.
lib/warnless.[ch]: only check for WIN32 and ignore _WIN32
curl_setup.h automatically defines WIN32 if just _WIN32 is defined.