include: Fix the use of __getReg for aarch64/msvc mode.
commit0fac6bcfa4e607dd7fa475f4663a08bd5c193701
authorMartin Storsjö <martin@martin.st>
Wed, 31 May 2023 07:07:50 +0000 (31 10:07 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 31 May 2023 08:08:02 +0000 (31 10:08 +0200)
tree4cf69a217e846c0472bbb75e18a8fa23d40c9d7d
parent7ed63c30e8dee3509c52e11230470be2dcfe6cf5
include: Fix the use of __getReg for aarch64/msvc mode.

Clang requires the __getReg function to be declared in addition to
be declared as an intrinsic with the pragma.

This fixes the following error:

../wine/include/winnt.h:2412:27: error: call to undeclared library function '__getReg' with type 'unsigned long long (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    return (struct _TEB *)__getReg(18);
                          ^
../wine/include/winnt.h:2412:27: note: include the header <intrin.h> or explicitly provide a declaration for '__getReg'
1 error generated.

Signed-off-by: Martin Storsjö <martin@martin.st>
include/winnt.h