PixlOne / logiops

An unofficial userspace driver for HID++ Logitech devices
GNU General Public License v3.0
3.36k stars 266 forks source link

Add include <algorithm> to fix building with gcc 14 #415

Closed kostadinsh closed 4 months ago

kostadinsh commented 11 months ago

With gcc 14 some C++ Standard Library headers have been changed to no longer include other headers that were being used internally by the library. In logiops's case it is the <algorithm> header.

Downstream Gentoo bug

GCC 14 porting guide

deamn commented 8 months ago

Same problem for fedora 40 (rawhide): https://bugzilla.redhat.com/show_bug.cgi?id=2261353

PixlOne commented 4 months ago

Sorry it took me so long to review this, I've been quite busy recently. Will merge this if it fixes building on all systems.