mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 14:36:16 +01:00
Merge branch 'meson-size_t-check' into 'main'
Fix detecting size_t size when `-Wmissing-prototypes` is in CFLAGS See merge request GNOME/glib!3777
This commit is contained in:
commit
af6bf99495
@ -1699,7 +1699,7 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
|
|||||||
g_sizet_compatibility += { type_name: size_compatibility and
|
g_sizet_compatibility += { type_name: size_compatibility and
|
||||||
cc.compiles(
|
cc.compiles(
|
||||||
'''#include <stddef.h>
|
'''#include <stddef.h>
|
||||||
size_t f (size_t *i) { return *i + 1; }
|
static size_t f (size_t *i) { return *i + 1; }
|
||||||
int main (void) {
|
int main (void) {
|
||||||
unsigned ''' + type_name + ''' i = 0;
|
unsigned ''' + type_name + ''' i = 0;
|
||||||
f (&i);
|
f (&i);
|
||||||
|
Loading…
Reference in New Issue
Block a user