]> mj.ucw.cz Git - pciutils.git/commit
windows: Make msvc __readeflags more readable
authorPali Rohár <pali@kernel.org>
Sun, 1 Jan 2023 18:52:16 +0000 (19:52 +0100)
committerMartin Mares <mj@ucw.cz>
Sun, 18 Feb 2024 13:13:41 +0000 (14:13 +0100)
commit6aba380e7e51a54d4a4eb529afb2eeada313295b
tree1e602a8864ffdb1cac81929f17117ff0a72afe74
parentbe40c4738eef9d1283207e62f539c52a5315c10c
windows: Make msvc __readeflags more readable

Semicolon in msvc __asm block means start of the comment, and not end of
the __asm statement, like it is for all other C statements. Also function
which uses msvc inline assembly cannot be inlined to another function
(compiler reports a warning about it, not a fatal error). So add explicit
curly brackets for __asm block, remove misleading semicolons and do not
declare function as inline.
lib/i386-io-windows.h