Use the correct macro _WIN32 for Windows.
authorVinson Lee <vlee@freedesktop.org>
Wed, 5 Sep 2012 05:53:42 +0000 (22:53 -0700)
committerVinson Lee <vlee@freedesktop.org>
Thu, 6 Sep 2012 05:14:32 +0000 (22:14 -0700)
commit17a574d7cd8c541c902cc0da40362a32d965e77b
tree749c3734460efa898e72f17dd85b7065e6104de5
parentdf5eb0c9bc951a8f69ebaa70e6cccdb9e8b27c04
Use the correct macro _WIN32 for Windows.

The correct predefined macro for Windows is _WIN32, not WIN32 or
__WIN32__.  _WIN32 is defined for 32-bit and 64-bit version of Windows
by both MSVC and MinGW compilers.

http://sourceforge.net/p/predef/wiki/OperatingSystems
http://msdn.microsoft.com/en-us/library/b0084kay.aspx

This patch also fixes a MinGW automake build error.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
14 files changed:
src/gallium/auxiliary/util/u_snprintf.c
src/gallium/auxiliary/util/u_string.h
src/gallium/tests/graw/fs-test.c
src/gallium/tests/graw/gs-test.c
src/gallium/tests/graw/vs-test.c
src/glx/glxclient.h
src/mapi/glapi/gen/gl_x86-64_asm.py
src/mapi/glapi/gen/gl_x86_asm.py
src/mapi/glapi/glapi_dispatch.c
src/mapi/mapi/u_current.c
src/mapi/mapi/u_thread.h
src/mesa/main/compiler.h
src/mesa/main/imports.c
src/mesa/x86/common_x86.c