-
Notifications
You must be signed in to change notification settings - Fork 267
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
Centos 6.3 Build Error: "conflicting types for ‘UTP_Write’" #42
Comments
Next, what is __bool_true_false_are_defined? Finally, utp.cpp itself is C++ obviously, so there's no pressing need to define |
__bool_true_false_are_defined is a macro from stdbool.h to detect whether those keywords have already been defined. The issue is that the compiler isn't smart enough to understand that the different typedefs from utypes.h, stdbool.h, and elsewhere are really the same unsigned char, so compilation fails with a mismatch. Including stdbool.h in the not-C++ block of utypes.h would fix this. I don't know how universal stdbool.h is on your target platforms, but you could possibly drop the HAVE_STDBOOL_H autoconf idiom. |
Certainly there is no stdbool.h on Windows. Also we don't have autoconf to set HAVE_STDBOOL_H. Any easy answer here would be just use ints. That seems unlikely to bite me again (#12). Why does the state of C89/C99/C++ have to be so terrible? |
Blah, I forgot about #12. int sounds like it might be the least-bad choice. |
cfpp2p@39d0263
This bug was submitted by mmain Transmission ticket #5232 I'm passing it upstream.
The text was updated successfully, but these errors were encountered: