]> git.ipfire.org Git - thirdparty/pciutils.git/commit
libpci: i386-io-windows.h: Do not define __readeflags() for GCC 4.9+
authorPali Rohár <pali@kernel.org>
Sat, 16 Apr 2022 15:23:45 +0000 (17:23 +0200)
committerPali Rohár <pali@kernel.org>
Mon, 20 Jun 2022 17:45:34 +0000 (19:45 +0200)
commit01ecaf9e3a515895d9eec85bc954412a6d0d7d97
tree95bc4b4f798909a252f1bc815a132d1e951b5860
parentd224993d423bcd0e88d8eacc0464bc3a66972e95
libpci: i386-io-windows.h: Do not define __readeflags() for GCC 4.9+

GCC header file <x86intrin.h> defines static inline function __readeflags()
which calls correct __builtin_ia32_readeflags_XX() builtin.

Header file <x86intrin.h> is included by MinGW-w64's <intrin.h> header file
in new versions of MinGW-w64 and <intrin.h> may be included transitionally
by some other header files automatically.

Defining __readeflags() as both macro and static inline function cause
compile errors.

Fix this compile error by not defining __readeflags() macro and instead
include GCC header file <x86intrin.h>.
lib/i386-io-windows.h