-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mingw: Fix the MSYS1 build #164
Conversation
In contrast to MSYS2, MSYS1 not only defines REPARSE_DATA_BUFFER in "ntifs.h" but also in "winnt.h". Luckily, we can distinguish between MSYS1's and MSYS2's "winnt.h" by looking at the include-guards: While MSYS1 defines "_WINNT_H", MSYS2 defines "_WINNT_". Signed-off-by: Sebastian Schuberth <[email protected]>
@kblees Can you please also have a look? |
Looks obviously correct to me. Thank you. |
Thanks, looks good to me. Just checked: Microsoft SDK's winnt.h also uses I just wondered if this is the only way to distinguish between MinGW and MinGW-w64. According to [1], maybe this would be better (haven't tried it though)?: |
This is indeed the appropriate guard if you want to add code specifically to be used with MinGW-w64. |
…unpack-trees-checkout-detail trace2:gvfs:experiment Add addition unpack_trees() and report_tracking() data
Includes gvfs-specific commits from these pull requests: git-for-windows#158 git-for-windows#159 git-for-windows#160 git-for-windows#164 Signed-off-by: Derrick Stolee <[email protected]>
Includes gvfs-specific commits from these pull requests: git-for-windows#158 git-for-windows#159 git-for-windows#160 git-for-windows#164 Signed-off-by: Derrick Stolee <[email protected]>
Includes gvfs-specific commits from these pull requests: git-for-windows#158 git-for-windows#159 git-for-windows#160 git-for-windows#164 Signed-off-by: Derrick Stolee <[email protected]>
Includes gvfs-specific commits from these pull requests: git-for-windows#158 git-for-windows#159 git-for-windows#160 git-for-windows#164 Signed-off-by: Derrick Stolee <[email protected]>
Includes gvfs-specific commits from these pull requests: git-for-windows#158 git-for-windows#159 git-for-windows#160 git-for-windows#164 Signed-off-by: Derrick Stolee <[email protected]>
Includes gvfs-specific commits from these pull requests: git-for-windows#158 git-for-windows#159 git-for-windows#160 git-for-windows#164 Signed-off-by: Derrick Stolee <[email protected]>
Includes gvfs-specific commits from these pull requests: git-for-windows#158 git-for-windows#159 git-for-windows#160 git-for-windows#164 Signed-off-by: Derrick Stolee <[email protected]>
In contrast to MSYS2, MSYS1 not only defines REPARSE_DATA_BUFFER in
"ntifs.h" but also in "winnt.h". Luckily, we can distinguish between
MSYS1's and MSYS2's "winnt.h" by looking at the include-guards:
While MSYS1 defines "_WINNT_H", MSYS2 defines "WINNT".
Signed-off-by: Sebastian Schuberth [email protected]