Re: [PATCH 1/2] mingw: avoid relative `#include`s
- From
Matthias Aßhauer <mha1993@live.de>
- Date
- Oct 11, 2025, 09:03 UTC
- Message-ID
- <DB9P250MB06929F022ADC9A0544947BDAA5ECA@DB9P250MB0692.EURP250.PROD.OUTLOOK.COM>
- In-Reply-To
- <484ef8b825e5d1d68a61f0f8cc2520457e8f4f3a.1759995961.git.gitgitgadget@gmail.com>
On Thu, 9 Oct 2025, Johannes Schindelin via GitGitGadget wrote:
Show 20 quoted lines
> From: Johannes Schindelin <johannes.schindelin@gmx.de> > > We want to make them relative to the top-level directory. > > Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> > --- > compat/mingw.c | 20 ++++++++++---------- > 1 file changed, 10 insertions(+), 10 deletions(-) > > diff --git a/compat/mingw.c b/compat/mingw.c > index 8538e3d172..da99473f56 100644 > --- a/compat/mingw.c > +++ b/compat/mingw.c > @@ -1,22 +1,22 @@ > #define USE_THE_REPOSITORY_VARIABLE > #define DISABLE_SIGN_COMPARE_WARNINGS > > -#include "../git-compat-util.h" > +#include "git-compat-util.h" > #include "win32.h"
Isn't this include also relative to compat/ and should become #include "compat/win32.h"?
Show 13 quoted lines
> #include <aclapi.h> > #include <sddl.h> > #include <conio.h> > #include <wchar.h> > -#include "../strbuf.h" > -#include "../run-command.h" > -#include "../abspath.h" > -#include "../alloc.h" > +#include "strbuf.h" > +#include "run-command.h" > +#include "abspath.h" > +#include "alloc.h" > #include "win32/lazyload.h"
Same situation here.
best regards
Matthias