mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 15:14:38 +01:00
gcc 10 complains about multiple definitions of these when linking. /usr/bin/ld: libhidpp.a(src_hidpp-generic.c.o):/builddir/build/BUILD/libratbag-0.12/x86_64-redhat-linux-gnu/../src/libratbag-private.h:588: multiple definition of `etekcity_driver'; libutil.a(src_libratbag-util.c.o):/builddir/build/BUILD/libratbag-0.12/x86_64-redhat-linux-gnu/../src/libratbag-private.h:588: first defined here Special case here is the test_driver struct, without the extern gcc seems to think it's a new struct with all zeros, causing a segfault when we then try to strcmp the test driver name. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2.5 KiB
2.5 KiB