Fix build on Windows with new qdatetime.h that doesn't redefine min/max
authorSimon Hausmann <simon.hausmann@nokia.com>
Wed, 13 Jun 2012 10:13:36 +0000 (12:13 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 13 Jun 2012 10:19:17 +0000 (12:19 +0200)
commit40a95ed42c34a4bdcd89c768a965c603714c5108
tree193e486a919f32e4f2ed631ec24fd8d5200846ef
parentd1b0862ad4d1dc64d8707464fb891ec397dc4b4a
Fix build on Windows with new qdatetime.h that doesn't redefine min/max

Windows system header files redefine min/max, unless NOMINMAX is defined.
In some cases we can simply include qt_windows.h, which does the trick,
in other cases including qt_windows.h produces different compilation
errors and it's simpler to just do the NOMINMAX trick.

Change-Id: I3cf81bab7c239363adfa274f158bdf999d1d3ecd
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/multimedia/audio/qaudioinput_win32_p.h
src/multimedia/audio/qaudiooutput_win32_p.h
src/plugins/directshow/player/directshoweventloop.h