Skip to content
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

Merged
merged 1 commit into from
May 28, 2015
Merged

mingw: Fix the MSYS1 build #164

merged 1 commit into from
May 28, 2015

Conversation

sschuberth
Copy link

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]

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]>
@sschuberth
Copy link
Author

@kblees Can you please also have a look?

@dscho
Copy link
Member

dscho commented May 28, 2015

Looks obviously correct to me. Thank you.

dscho added a commit that referenced this pull request May 28, 2015
@dscho dscho merged commit f071ac8 into master May 28, 2015
@dscho dscho deleted the reparse-data-buffer-struct branch May 28, 2015 14:57
@kblees
Copy link

kblees commented May 28, 2015

Thanks, looks good to me.

Just checked: Microsoft SDK's winnt.h also uses _WINNT_, so your fix would also work for MSVC.

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)?: #if defined(__MINGW64_VERSION_MAJOR) || defined(_MSC_VER)

[1] http://sourceforge.net/p/predef/wiki/Compilers/

@dscho
Copy link
Member

dscho commented May 28, 2015

#if defined(__MINGW64_VERSION_MAJOR)

This is indeed the appropriate guard if you want to add code specifically to be used with MinGW-w64.

jeffhostetler added a commit to jeffhostetler/git that referenced this pull request Aug 13, 2019
…unpack-trees-checkout-detail

trace2:gvfs:experiment Add addition unpack_trees() and report_tracking() data
jeffhostetler added a commit to jeffhostetler/git that referenced this pull request Jun 3, 2020
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]>
jeffhostetler added a commit to jeffhostetler/git that referenced this pull request May 14, 2021
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]>
jeffhostetler added a commit to jeffhostetler/git that referenced this pull request Jun 21, 2021
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]>
jeffhostetler added a commit to jeffhostetler/git that referenced this pull request Aug 18, 2021
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]>
mjcheetham pushed a commit to mjcheetham/git that referenced this pull request Jun 16, 2022
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]>
mjcheetham pushed a commit to mjcheetham/git that referenced this pull request Jul 23, 2024
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]>
mjcheetham pushed a commit to mjcheetham/git that referenced this pull request Jan 20, 2025
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants