]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
lib/{ext2fs,support}: fix 32-bit Windows build
authorEric Biggers <ebiggers@google.com>
Sat, 21 Jan 2023 20:32:13 +0000 (12:32 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 27 Jan 2023 17:38:31 +0000 (12:38 -0500)
commitf8a9d77cea1fc924f59f24955a1c8d6878410f5c
tree609e4b73408f804e707b3a4efd64a6dc556654ea
parentca3477857864de9c345dcf8069666f47be0a8bbc
lib/{ext2fs,support}: fix 32-bit Windows build

_WIN32 is the standard macro to detect (native) Windows, regardless of
32-bit or 64-bit.  _WIN64 is for 64-bit Windows only.  Use _WIN32 where
_WIN64 was incorrectly being used.

This fixes several 32-bit Windows build errors, for example this one:

plausible.c: In function ‘print_ext2_info’:
plausible.c:109:31: error: ‘unix_io_manager’ undeclared (first use in this function); did you mean ‘undo_io_manager’?
  109 |                               unix_io_manager,
      |                               ^~~~~~~~~~~~~~~
      |                               undo_io_manager

Fixes: 86b6db9f5a43 ("libext2fs: code adaptation to use the Windows IO manager")
Cc: Paulo Antonio Alvarez <pauloaalvarez@gmail.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/getsectsize.c
lib/support/plausible.c
util/subst.c