On Mon, Nov 18, 2013 at 07:43:28AM -0800, Gurucharan Shetty wrote: > windefs.h will be included inside config.h. Since config.h > should ideally be included by all the header files, windefs.h > will automatically be included while compiling on windows. > The file is eventually expected to have some typedefs > and #defines to make code compile on windows. > > Signed-off-by: Gurucharan Shetty <gshe...@nicira.com>
I have mixed feelings about this because it starts to mix platform and compiler dependencies. If one were to use GCC (from mingw) as the compiler, then the "typedef char bool;" would not help, it would actually prevent compiling. In fact, I'm not sure how it helps with MSVC, since presumably that compiler doesn't have <stdbool.h> and will complain when we try to include it? _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev