Commit Graph

16 Commits

Author SHA1 Message Date
Rémi Denis-Courmont
527a08ec49 meson: remove unused CAN_COMPILE_SSE check 2023-03-03 19:38:24 +00:00
Steve Lhomme
2ff4c82bb8 meson: remove unused HAVE_STATIC_ASSERT
We assume C11 compilers have support for static_assert() and _Static_assert
since 6be0e8af6b.
2023-03-02 07:06:47 +00:00
Steve Lhomme
cedea4d018 configure: don't the check presence of stricmp
_stricmp a Windows thing that is present in all the CRT, even in UCRT.
The stricmp() deprecated variant doesn't seem to exist elsewhere.

In some configuration it's not possible to link with stricmp() even though
_stricmp() is available.
2023-02-28 10:10:27 +00:00
Steve Lhomme
0b9fd8e4cb config.h.meson: add missing HAVE__LOCK_FILE 2023-02-11 22:00:16 +00:00
Steve Lhomme
42d230befa configure: don't define _POSIX_C_SOURCE for mingw-w64
It forces __USE_MINGW_ANSI_STDIO, M_PI and some functions we already have
done better in compat.
2023-01-31 09:11:53 +00:00
Steve Lhomme
a7b55fa70f configure: don't define _POSIX_SOURCE for mingw-w64
It forces __USE_MINGW_ANSI_STDIO, M_PI and some functions we already have
done better in compat.
2023-01-31 09:11:53 +00:00
Steve Lhomme
5643ba0359 meson: remove never set _UNICODE
It's not set in configure.ac either.
2023-01-31 09:11:53 +00:00
Steve Lhomme
a98a501df0 meson: fix PROCESS_MITIGATION_IMAGE_LOAD_POLICY check 2023-01-26 11:23:56 +00:00
Steve Lhomme
d7a9bc2326 meson: remove _ISOCXX_SOURCE macros on Windows
With a proper C11 compiler we don't need this. Either they activate C11
things in the compiler which should be there anyway. Or in the SDK
which is __USE_MINGW_ANSI_STDIO for C99 and nothing else.
2023-01-23 07:27:12 +00:00
Steve Lhomme
7e388405f4 meson: remove unneeded windows defines
They are used to enable _USE_MATH_DEFINES or __USE_MINGW_ANSI_STDIO, which we
already define.
2023-01-23 07:27:12 +00:00
Steve Lhomme
352ad101b3 rename __LIBVLC__ to LIBVLC_INTERNAL_
define names starting with 2 underscore are reserved.

https://devblogs.microsoft.com/oldnewthing/20230109-00/?p=107685
2023-01-17 10:37:49 +00:00
Johannes Kauffmann
a01c567bff meson: add initial winstore support
This patch tries to replicate configure.ac (at the time of writing)
from line 407 - 438, except the strict aliasing check. Libraries such as
ole32 are linked by default by meson, so those have been omitted.
Another difference: the check has been moved out of the mingw check.

This is not meant to be functional just yet, but having the winstore
option gives a starting point for further support.
2023-01-14 14:03:40 +00:00
Steve Lhomme
1c8607bc97 meson: remove forcing _WIN32_IE
It's been removed in fdbf5c77b5
2023-01-13 14:35:04 +00:00
Steve Lhomme
5b27a78738 meson: only set _WIN32_WINNT if it's not set in the environment
The same way it's done in configure.ac
2023-01-13 14:35:04 +00:00
Steve Lhomme
e030e04e5d meson: define missing ssize_t and SSIZE_MAX from ptrdiff_t
ptrdiff_t is available in C11
2023-01-07 20:39:45 +00:00
Marvin Scholz
d5f07af209 meson: add initial meson build system
Co-authored-by: Tanguy Dubroca <tanguy.dubroca@lse.epita.fr>
Co-authored-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
Co-authored-by: Alexandre Janniaux <ajanni@videolabs.io>
2023-01-04 14:48:39 +00:00