OSDN Git Service

st/nine: specify WINAPI only for i386 and amd64
authorChristian Schmidbauer <ch.schmidbauer@gmail.com>
Sun, 13 Mar 2016 21:50:31 +0000 (22:50 +0100)
committerAxel Davy <axel.davy@ens.fr>
Sat, 2 Apr 2016 21:30:40 +0000 (23:30 +0200)
commit2a529a8ac810b3b40e7a9a071d9544b168928b94
treeb4641b45c83d9bd8651ae6eb85e6c6a388ddde27
parent0852c5703b57cb277b893e7e9db48c47712a0846
st/nine: specify WINAPI only for i386 and amd64

Currently mesa fails building with the x32 abi as ms_abi is not defined
in such a case.

The patch uses ms_abi only for amd64 targets and stdcall only for i386
targets to be sure that those are defined.

This patch additionally checks for __GNUC__ to guarantee that
__attribute__ is available.

CC: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Christian Schmidbauer <ch.schmidbauer@gmail.com>
Acked-by: Axel Davy <axel.davy@ens.fr>
include/D3D9/d3d9types.h