Commit Graph

90 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 0cdf9359e0 winecrt0: Use the correct integral type.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 17:56:07 +01:00
Alexandre Julliard 49ee0f58e8 winecrt0: Check __WINE_PE_BUILD instead of compiler macros.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52287
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-27 15:02:52 +01:00
Alexandre Julliard 4f58d8144c ntdll: Remove __wine_init_unix_lib() and the old Unix library interface.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-09 17:14:59 +01:00
Alexandre Julliard cbf94a7b2c configure: Add a __WINE_PE_BUILD define for files that are built as PE.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-14 11:07:10 +02:00
Alexandre Julliard 518f9a12c1 makefiles: Use the STATICLIB variable for static import libraries.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-06 20:29:34 +02:00
Alexandre Julliard 53bd74489d winecrt0: Add fallback implementation for __wine_unix_call().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-26 17:41:42 +02:00
Biswapriyo Nath d60c450c7b winecrt0: Add missing members in _JUMP_BUFFER for SJLJ.
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-19 20:09:58 +02:00
Alexandre Julliard 7477648034 winecrt0: Use multiple load/store instructions in setjmp() on ARM.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-21 23:15:25 +02:00
Alexandre Julliard 1331a8ea0f winecrt0: Determine the registration module handle directly in __wine_register_resources().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-30 22:59:50 +02:00
Alexandre Julliard 5d82baf974 winecrt0: Add a default implementation DllRegisterServer()/DllUnregisterServer().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-30 22:59:50 +02:00
Alexandre Julliard bd6b53740c winecrt0: Add a default implementation for DllCanUnloadNow().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-30 22:59:50 +02:00
Alexandre Julliard 14aaa0a373 winecrt0: Replace SystemRoot when registering dlls.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-09 20:37:14 +02:00
Alexandre Julliard 2e115ab442 Revert "winecrt0: Make the main() and wmain() entry points cdecl."
This reverts commit f2a7405a09.
We now have separate entry points for msvcrt builds.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-04 11:01:41 +01:00
Alexandre Julliard 9dc2892785 include: Use proper dllimports for kernel32 functions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-24 18:41:13 +01:00
Alexandre Julliard a014f413d6 ntdll: Add support for loading a Unix helper library from builtin dlls.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-21 13:41:28 +02:00
Alexandre Julliard 33be7790e5 winecrt0: Move setjmpex/longjmp implementation to a separate file.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-24 22:14:44 +02:00
Jacek Caban 053f07f602 winecrt0: Add _fltused symbol.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-05 20:53:02 +02:00
Jacek Caban 9666ed9c46 winecrt0: Build exception functions on clang msvc target.
We may potentially use compiler __try/__except support in this case, but
there is no reason not to support both.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-05 20:53:02 +02:00
Alexandre Julliard f6a363bc41 winecrt0: Get rid of constructor support.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-21 11:28:03 +02:00
Alexandre Julliard 2ba1b7fd3b winecrt0: Remove constructor support for exe and native modules.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-15 20:03:23 +02:00
Alexandre Julliard 036f4dca3c winecrt0: Rebuild the argv array instead of getting it from libwine.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-08 21:01:18 +02:00
Zebediah Figura 5c414922b4 winecrt0: Make __wine_(un)register_resources() cdecl.
This fixes a bug where 64-bit winegstreamer.dll would fail to (un)register
CLSID_VideoProcessorMFT when run manually with regsvr32.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-11 08:44:28 +01:00
Alexandre Julliard a812374a52 winecrt0: Preserve last error when loading debug functions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-20 10:34:07 +01:00
Alexandre Julliard 5a9c88d62e winecrt0: Create the Ansi argv from the Unicode one.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-09 10:33:12 +01:00
Alexandre Julliard 8af4e177f3 winecrt0: Add .seh annotations for x86_64.
Based on a patch by Rémi Bernon.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-21 11:52:04 +02:00
Jacek Caban 4013056a67 winecrt0: Add DllMainCRTStartup.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-07 00:12:25 +02:00
Jacek Caban 2afb863372 winecrt0: Add __delayLoadHelper2.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-07 00:12:25 +02:00
Alexandre Julliard 2477aa7a10 makefiles: Default to an msvcrt build for static libraries.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-05 18:58:58 +02:00
Alexandre Julliard 61680b4449 winecrt0: Provide our own setjmp/longjmp functions for exception handling.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-18 23:51:51 +02:00
Alexandre Julliard d401837994 winecrt0: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-18 23:51:51 +02:00
Alexandre Julliard f2a7405a09 winecrt0: Make the main() and wmain() entry points cdecl.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-30 15:04:06 +02:00
Alexandre Julliard 60df3b14b5 include: Make the Wine exception handlers cdecl.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-30 15:04:06 +02:00
Alexandre Julliard c4e0b9d092 makefiles: Support cross-compilation of 16-bit libraries.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-20 10:15:17 +02:00
Alexandre Julliard 1f6681f474 winebuild: Use cdecl calling convention for stub exceptions.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47226
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-20 10:15:17 +02:00
Alexandre Julliard 170bd8f361 include: Pass function name directly to the __ASM_STDCALL macro.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-16 19:00:10 +02:00
Alexandre Julliard ce09e564d7 configure: Don't allow using config.h when cross-compiling.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-14 20:13:53 +02:00
Alexandre Julliard 3346132a0b winecrt0: Don't build unneeded code for Windows platforms.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-14 17:19:45 +02:00
Alexandre Julliard 351bd33069 winecrt0: Reimplement __wine_rtl_unwind() as a proper asm function.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-14 17:19:45 +02:00
Alexandre Julliard 9177a75acc winecrt0: Store the appropriate longjmp() function in the exception frame.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-14 17:19:45 +02:00
Alexandre Julliard d5a372abbb include: Move inline assembly definitions to a new wine/asm.h header.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-14 13:45:07 +02:00
Alexandre Julliard e78ee4f436 winecrt0: Avoid using wine/port.h.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-05 22:16:30 +02:00
Alistair Leslie-Hughes ab7d86552d winecrt0: Correct compile error with older gcc.
Using gcc version 4.8.4.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-04 16:58:54 +02:00
Alexandre Julliard 93a9d85488 winecrt0: Add a fallback implementation of __wine_dbg_header().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-03 19:28:19 +02:00
Alexandre Julliard b0ecbe0bae winecrt0: Add a fallback implementation of __wine_dbg_get_channel_flags().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-03 19:28:19 +02:00
Alexandre Julliard 0ad86465ae winecrt0: Add a fallback implementation of __wine_dbg_output().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-03 19:28:19 +02:00
Alexandre Julliard d6060b7cf7 winecrt0: Add a fallback implementation of __wine_dbg_strdup().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-03 19:28:19 +02:00
Piotr Caban 3eae4807dc include: Add __EXCEPT_CTX/__FINALLY_CTX macros.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-05 11:26:30 +02:00
Alexandre Julliard af6db67d6f makefiles: Get rid of the MAKE_IMPLIB_RULES variable. 2014-01-02 12:12:59 +01:00
Alexandre Julliard 1cd2786f92 makefiles: Generate cross-compile rules automatically when supported. 2014-01-01 21:28:28 +01:00