From: "Theodore Ts'o" <tytso@mit.edu>
To: Eric Biggers <ebiggers@kernel.org>
Cc: linux-ext4@vger.kernel.org
Subject: Re: [PATCH 4/4] lib/uuid: remove unneeded Windows UUID workaround
Date: Mon, 30 Jan 2023 00:09:13 -0500 [thread overview]
Message-ID: <Y9dQ+S7ZJ6mxiUdO@mit.edu> (raw)
In-Reply-To: <20230128224651.59593-5-ebiggers@kernel.org>
On Sat, Jan 28, 2023 at 02:46:51PM -0800, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@google.com>
>
> Some .c files in lib/uuid/ contain the following:
>
> #ifdef _WIN32
> #define _WIN32_WINNT 0x0500
> #include <windows.h>
> #define UUID MYUUID
> #endif
>
> This seems to have been intended to allow the use of a local "UUID" type
> without colliding with "UUID" in the Windows API. However, this is
> unnecessary because there's no local "UUID" type -- there's only uuid_t.
>
> None of these .c files need the include of windows.h, either.
>
> Finally, the unconditional definition of _WIN32_WINNT causes a compiler
> warning when the user defines _WIN32_WINNT themself.
>
> Since this code is unnecessary and is causing problems, just remove it.
>
> Signed-off-by: Eric Biggers <ebiggers@google.com>
Thanks, applied to the maint branch.
- Ted
prev parent reply other threads:[~2023-01-30 5:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-28 22:46 [PATCH 0/4] e2fsprogs: a few more warning fixes Eric Biggers
2023-01-28 22:46 ` [PATCH 1/4] ci.yml: ensure -Werror really gets used in all cases Eric Biggers
2023-01-30 5:07 ` Theodore Ts'o
2023-01-28 22:46 ` [PATCH 2/4] debugfs: fix a -Wformat warning in dump_journal() Eric Biggers
2023-01-30 5:08 ` Theodore Ts'o
2023-01-28 22:46 ` [PATCH 3/4] lib/ext2fs: don't warn about lack of getmntent on Windows Eric Biggers
2023-01-30 5:08 ` Theodore Ts'o
2023-01-28 22:46 ` [PATCH 4/4] lib/uuid: remove unneeded Windows UUID workaround Eric Biggers
2023-01-30 5:09 ` Theodore Ts'o [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y9dQ+S7ZJ6mxiUdO@mit.edu \
--to=tytso@mit.edu \
--cc=ebiggers@kernel.org \
--cc=linux-ext4@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.