[rtmpdump] [PATCH] Visual Studio Header Fix

Howard Chu hyc at highlandsun.com
Mon Mar 29 05:14:33 CEST 2010


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.


More information about the rtmpdump mailing list