Commit Graph

139 Commits

Author SHA1 Message Date
Alexandre Julliard f0cd33c69e include: Add support for defining Win32 types as 'long' where possible.
Add -DWINE_NO_LONG_TYPES to modules that still have compilation
warnings with long types.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 20:38:22 +01:00
Alexandre Julliard 339950a781 configure: Don't define _WIN32 for Cygwin builds.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-14 11:07:56 +02:00
Martin Storsjo 52398912f9 include: Don't use __attribute__((pcs("aapcs-vfp"))) when building in PE mode.
Clang doesn't support this attribute for windows targets right now;
the attribute is only needed for selecting a potentially non-default
calling convention on e.g. linux.

Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-01-15 16:20:06 +01:00
Martin Storsjo dac1e16dd4 include: Check whether the ms_abi attribute is supported on aarch64.
While wine's configure checks and requires that the ms_abi attribute
is supported on aarch64 (without it, variadic functions don't have the
correct ABI), these headers are also included when building widl as a
generic cross compilation tool as part of mingw-w64-tools. In the case
of widl, the functions that use these attributes (and in particular,
their ABI) doesn't matter as they aren't used/called, they're just
included as a side effect of including the headers that widl actually
needs.

This fixes building the widl tool for aarch64 linux with GCC, even if
wine itself can't be built in that configuration.

Only windef.h is used/needed by widl, but update msvcrt/corecrt.h as
well to keep these definitions in sync.

Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-21 16:55:53 +01:00
Alexandre Julliard 5a0c9270b1 include: Force aligning stack pointer also for Mingw builds.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50189
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-26 21:31:53 +01:00
Brendan Shanks 91741446c7 include: Force stack alignment on x86_64 with Clang.
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-05 09:58:48 +01:00
André Hentschel 557b81116d include: Add else cases for __cdecl.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-06-17 18:37:52 +02:00
Jacek Caban 0a09fdfa1f include: Introduce WINE_USE_LONG macro.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-04 17:33:56 +02:00
Jacek Caban 3acd943275 windef.h: Use __thiscall keyword on Clang with MSVC target.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-23 20:20:24 +02:00
Jacek Caban 1902eba2c6 include: Don't override keywords with macros on MSVC.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-23 20:20:22 +02:00
Zebediah Figura cd1a09be73 include: Define RTL_BALANCED_NODE.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-23 09:23:29 +02:00
Alexandre Julliard 0a79eb3608 include: Use the __thiscall attribute directly for the Mingw build.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-16 19:00:10 +02:00
Alexandre Julliard 10584d2057 include: Use the __fastcall attribute directly for the Windows build.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-16 14:07:15 +02:00
Alexandre Julliard ec94d0d58d user32/tests: Fix some test failures on latest Windows 10.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-11 15:54:06 +01:00
Martin Storsjo 8fb8cc03c3 arm64: Use __builtin_ms_va_list and __attribute__((ms_abi)) on arm64.
Windows uses a different ABI for va_list on arm64 just like on x86_64.

On x86_64, the calling convention for windows functions is completely
different from the one on other platforms. On arm64, they're mostly the
same, with the only exception being variadic functions (where all float
arguments are passed in integer registers, since the va_list is a single
pointer).

Any functions using __builtin_ms_va_start need to be decorated with
__attribute__((ms_abi)).

Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-10 08:36:58 +02:00
Alexandre Julliard 4e752086d7 user32: Implement IsValidDpiAwarenessContext().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-30 12:33:14 +02:00
Louis Lenders 40b46d900a user32: Add stub for SetThreadDpiAwarenessContext.
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-29 16:06:03 +02:00
Alexandre Julliard 5c50ec0c74 include: Don't use floating point for WINAPI functions when building for soft-float on ARM.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-08 16:45:55 +01:00
Alexandre Julliard 644f497e87 include: Use the hard-float calling convention for Windows APIs on ARM
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-02 10:24:26 +01:00
Daniel Lehman 1fdebb77ec include: Remove references to SPARC.
SPARC support removed in 2013.

Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-04 09:13:12 +02:00
Justas Lavišius dccb57dfd9 include: Force stack alignment on x86_64.
Signed-off-by: Justas Lavišius <bucaneer@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 16:38:52 +09:00
Martin Storsjo 589f58d806 msvcr120: Implement the _vacopy function. 2014-12-08 17:08:51 +01:00
Michael Stefaniuc f78ffb374d include: Forbid the use of CONST in Wine. 2013-09-27 10:38:39 +02:00
André Hentschel 5c8da80801 include: Add remaining checks for ARM64. 2013-01-28 15:38:03 +01:00
Alexandre Julliard 4adfb787f4 include: Force stack alignment also on Linux to work around the ABI breakage. 2012-12-17 20:31:01 +01:00
Austin English d67275fed8 include: Define _WIN64 on sparc/powerpc64. 2011-11-08 09:50:06 +01:00
Alexandre Julliard 0e67f65cab include: Add support for building Wine with strict prototype checking. 2009-10-06 16:12:39 +02:00
Alexandre Julliard fb7acdcb28 user32: Convert wvsprintfA/W to use an MS ABI vararg list for x86_64. 2008-12-31 20:59:33 +01:00
Alexandre Julliard 74d63c020c include: Fix the definition of 64-bit types for Mingw64. 2008-12-09 17:42:13 +01:00
Maarten Lankhorst 6a704d6f72 includes: Add win64 calling convention. 2008-11-25 12:31:47 +01:00
Alexandre Julliard 80cff47c87 include: Get rid of the WINE_NO_LONG_AS_INT ifdefs. 2006-12-20 14:57:08 +01:00
Francois Gouget bb8e625b5b Assorted spelling fixes. 2006-12-05 10:31:47 +01:00
Michael Stefaniuc f8b8f216dd include: Make DWORD/LONG/ULONG an int to use the same type in Win32 and Win64. 2006-09-29 16:09:07 +02:00
Mike McCormack b346d0f248 windef.h: Add a definition for FILETIME. 2006-08-23 12:01:06 +02:00
Alexandre Julliard 58c64190f4 configure: Define _WIN64 when building on a 64-bit platform. 2006-07-10 13:05:20 +02:00
Nick Burns 0da92ec9ca include: Use force_align_arg_pointer on MacOS to fix the stack on entry to Wine. 2006-06-13 13:01:56 +02:00
Mike McCormack 77a83a7f4d include: Fix FARPROC, NEARPROC and PROC definitions for amd64. 2006-06-05 13:07:04 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Alexandre Julliard ef6d5df1e7 Add an argument to all uses of the __ONLY_IN_WINELIB macro (spotted by
Berend Reitsma).
2005-11-08 16:13:21 +00:00
Dimi Paun 1ae16a5160 Allow MSVC to use Wine's headers. 2005-10-04 11:30:27 +00:00
Alexandre Julliard bdf01c368d Define data types to the correct size on 64-bit platforms. 2005-09-22 10:58:04 +00:00
Kevin Koltzau 7ab2813735 Fix pointer cast warnings in 64bit. 2005-08-23 09:36:34 +00:00
Alexandre Julliard d59ba4ccf1 Added a WINE_NO_UNICODE_MACROS define to allow Winelib apps to switch
off the Unicode macros too.
2005-08-15 20:53:40 +00:00
Dmitry Timoshkov 6f686490b1 Fixed POINTS definition for WORDS_BIGENDIAN case. 2005-06-17 09:50:48 +00:00
Vincent Béron 5d0cc8fbdf Fix a typo in a comment. 2005-04-11 12:50:19 +00:00
Jon Griffiths 39bbcb48b6 Use correct tag names for compatability with fwd decls.
Some old code checks that _WINDEF_ is defined in windef.h.
2004-09-20 19:13:16 +00:00
Francois Gouget 91562d5b22 Add PSZ to windef.h.
Add a couple missing declarations to winternl.h.
Tweak VM_COUNTERS to match the ddk declaration.
2004-08-31 17:32:29 +00:00
Andreas Mohr 5d91a63add Move some OpenGL defines from the private wgl.h header to where they
belong.
2004-08-16 20:07:06 +00:00
Jon Griffiths 7d12892731 Correct tag names for RECTL and SCROLLINFO structs. 2004-06-25 01:18:10 +00:00
Jon Griffiths 34401d84b7 Added PPOINTL, a pointer to a POINTL struct. 2004-06-01 19:45:59 +00:00