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

Fixed compilation for libicu 68. #47352

Merged
merged 3 commits into from
Jan 23, 2021
Merged

Conversation

ManickaP
Copy link
Member

@ManickaP ManickaP commented Jan 22, 2021

libicu 68 deprecated its defines for TRUE/FALSE. This makes use of standard <stdbool.h> constants.
The change only lower-cases the constant names, we were already including the header file.

Fixes #47346

@ghost
Copy link

ghost commented Jan 22, 2021

Tagging subscribers to this area: @tarekgh, @safern, @krwq
See info in area-owners.md if you want to be subscribed.

Issue Details

libicu 68 deprecated its defines for TRUE/FALSE. This makes use of standard <stdbool.h> constants.

Fixes #47346

Author: ManickaP
Assignees: -
Labels:

area-System.Globalization

Milestone: -

@tarekgh
Copy link
Member

tarekgh commented Jan 22, 2021

Looks need to do more here as I am seeing a lot of failures like the following one.

/__w/1/s/src/libraries/Native/Unix/System.Globalization.Native/pal_calendarData.c:129:59: error: use of undeclared identifier 'false'; did you mean 'else'?
    GetLocale(localeName, locale, ULOC_FULLNAME_CAPACITY, false, &err);

CC @jkotas

@jkotas
Copy link
Member

jkotas commented Jan 22, 2021

#include <stdbool.h> ?

@ManickaP
Copy link
Member Author

Failing tests are #47374

@jkotas jkotas merged commit 626bbc8 into dotnet:master Jan 23, 2021
@jkotas
Copy link
Member

jkotas commented Jan 23, 2021

Thank you!

@ManickaP ManickaP deleted the mapichov/47346_stdbool branch January 25, 2021 11:41
@ghost ghost locked as resolved and limited conversation to collaborators Feb 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make use of stdbool.h
3 participants