git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Windows: Do not redefine _WIN32_WINNT

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 11, 2013, 18:29 UTC
Message-ID
<xmqq4n9rtdol.fsf@gitster.dls.corp.google.com>
In-Reply-To
<52309507.1090908@gmail.com>
Sebastian Schuberth <sschuberth@gmail.com> writes:
Show 14 quoted lines
> diff --git a/git-compat-util.h b/git-compat-util.h
> index 664305c..f5c756d 100644
> --- a/git-compat-util.h
> +++ b/git-compat-util.h
> @@ -93,7 +93,9 @@
>  #undef __NO_INLINE__
>  
>  #ifdef WIN32 /* Both MinGW and MSVC */
> +#ifndef _WIN32_WINNT
>  #define _WIN32_WINNT 0x0502
> +#endif
>  #define WIN32_LEAN_AND_MEAN  /* stops windows.h including winsock.h */
>  #include <winsock2.h>
>  #include <windows.h>

This unfortunately does not seem to match what I have. I think the patch is based on the codebase before these two:

 380395d0 (mingw: rename WIN32 cpp macro to GIT_WINDOWS_NATIVE, 2013-05-02)
 41f29991 (msvc: Fix compilation errors caused by poll.h emulation, 2013-01-31)

I could of course wiggle it in, if you want, but I wanted to know what is going on. Is it a pre-release freeze period on your side or something?

Previous: Sebastian SchuberthNext: Sebastian Schuberth
Message 2 of 5 in “Windows: Do not redefine _WIN32_WINNT”
  1. Windows: Do not redefine _WIN32_WINNTSebastian Schuberth, Sep 11, 2013
  2. Junio C HamanoSep 11, 2013
  3. Sebastian SchuberthSep 11, 2013
  4. Junio C HamanoSep 11, 2013
  5. Sebastian SchuberthSep 12, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.