Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Don't use GCC libstdc++ wrappers for stdlib.h #5304

Merged
merged 1 commit into from
May 30, 2016

Conversation

juergenhoetzel
Copy link

Recent GCC-Versions (>= 6) added C++-conforming wrappers for stdlib.h and math.h, which broke the build of pal:

mbstring.cpp:182:20: error: use of undeclared identifier 'min'
[Detailed description of root cause](https://github.com/dotnet/coreclr/issues/5006#issuecomment-
222191925)

The definition of _GLIBCXX_INCLUDE_NEXT_C_HEADERS prevents the use of the new wrappers.

This prevents #undef of min/max macros. Refs #5006.
@ellismg
Copy link

ellismg commented May 29, 2016

Thanks for the patch! @janvorli can you take a look?

@janvorli
Copy link
Member

LGTM, thank you very much for investigating and fixing the issue!

@janvorli janvorli merged commit 41912e3 into dotnet:master May 30, 2016
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
This prevents #undef of min/max macros. Refs dotnet/coreclr#5006.

Commit migrated from dotnet/coreclr@41912e3
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants