[PATCH] Visual Studio Header Fix
Hello, here's a quick patch for the AMF.H file to allow for the headers to be included in a Visual Studio C++ project. The library still has to be built properly but defining booleans bugs out the VS compiler. VS defines _MSC_VER automatically. Please let me know if this is a good idea or not. Thanks!
Stream Alerts Support wrote:
Hello, here's a quick patch for the AMF.H file to allow for the headers to be included in a Visual Studio C++ project. The library still has to be built properly but defining booleans bugs out the VS compiler. VS defines _MSC_VER automatically. Please let me know if this is a good idea or not. Thanks!
Thanks. Yeah, I suspected that using <stdbool.h> was going to be non-portable. That's what I get for listening to developers who only code for Linux... In the long run we should just eliminate all use of bool, it's a stupid crutch for weak-minded C++ programmers who don't remember that all conditional expressions evaluate to ints.
participants (2)
-
Howard Chu -
Stream Alerts Support