aboutsummaryrefslogtreecommitdiffhomepage
path: root/m4/ax_ptrdiff_aliases_int.m4
AgeCommit message (Collapse)AuthorFilesLines
2025-10-26AX_PTRDIFF_ALIASES_INT: the check should be more reliable nowRobin Haberkorn1-9/+6
* It was failing on OpenSUSE Tumbleweed i586 on OBS, resulting in duplicate symbols and build errors. This was not reproducible with 32-bit builds on OpenSUSE Tumbleweed x86_64. * Instead of hoping for a compiler warning to be treated as an error, we now use a static assertion with a _Generic expression. * The scintilla submodule has also been updated since Neil was asking to update the documentation as well.
2025-10-20fixup: AX_PTRDIFF_ALIASES_INT should enable -WerrorRobin Haberkorn1-0/+5
2025-10-20scintilla: use AX_PTRDIFF_ALIASES_INT to check whether ptrdiff_t aliases intRobin Haberkorn1-0/+16
* Scintilla had build problems if ptrdiff_t doesn't alias int if it has the same storage size (e.g. on NetBSD 10 (armv6)). * Unfortunately, Neil Hodgson refused to merge my previous Scintilla patches that would have fixed the issue at the core. See https://groups.google.com/g/scintilla-interest/c/STAv6LgLyCo * He only agreed to introducing a separate flag to work around the issue (`-DPTRDIFF_DOESNT_ALIAS_INT`). * In order to continue to support all standard C/C++ conforming platforms we therefore need a compile-time check to check for the aliasability of ptrdiff_t and int.