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

remove re-declaration of global "type" in curl/curl.h #76

Closed
wants to merge 1 commit into from

Conversation

shawnl
Copy link

@shawnl shawnl commented Aug 13, 2013

C does NOT have nested scopes

@bagder
Copy link
Member

bagder commented Aug 13, 2013

http://curl.haxx.se/dev/contribute.html#Please_don_t_send_pull_requests

I want patches reviewed and discussed on the mailing list so that everyone can be involved. Please always take it there first!

Can you also clarify what problem this caused you?

@kdudka
Copy link
Contributor

kdudka commented Aug 13, 2013

The problem may look as simply as this:

#include <curl/curl.h>

enum type {
    USER_PROVIDED_ENUM
};

It would be safer to prefix globally-scoped symbols with the curl_ prefix or something like that. On the other hand, certain changes in public header files after the release are painful too.

@bagder
Copy link
Member

bagder commented Aug 21, 2013

Crickets. I took it to the list myself => http://curl.haxx.se/mail/lib-2013-08/0213.html

@bagder bagder closed this Aug 21, 2013
boutetnico pushed a commit to ETrun/curl that referenced this pull request Nov 16, 2013
Renamed to "enum curl_khtype" now. Will break compilation for programs
that rely on the enum name.

Bug: curl#76
Reported-by: Shawn Landden
bagder pushed a commit that referenced this pull request Aug 24, 2015
This patch addresses known bug #76, where on 64-bit Windows SOCKET is 64
bits wide, but long is only 32, making CURLINFO_LASTSOCKET unreliable.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
jgsogo pushed a commit to jgsogo/curl that referenced this pull request Oct 19, 2015
This patch addresses known bug curl#76, where on 64-bit Windows SOCKET is 64
bits wide, but long is only 32, making CURLINFO_LASTSOCKET unreliable.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
@lock lock bot locked as resolved and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants