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

3rdparty: Specify C99 compiler flag for tinycbor source files #373

Merged
merged 1 commit into from
Nov 19, 2021

Conversation

yiting16
Copy link
Contributor

3rdparty: Specify C99 compiler flag for tinycbor source files

Description

The tinycbor codes use several macros from C99 math.h, like
FP_INFINITE, FP_NAN, INFINITE, NAN. Although it currently builds
fine with -std=gnu90 against Linux glibc, it fails to build with
a stricter C library.

Specify C99 compiler flag for tinycbor source files.

This relates to aws/aws-iot-device-sdk-embedded-C#1748

Checklist:

  • I have tested my changes. No regression in existing tests.
  • My code is formatted using Uncrustify.
  • I have read and applied the rules stated in CONTRIBUTING.md.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

The tinycbor codes use several macros from C99 math.h, like
FP_INFINITE, FP_NAN, INFINITE, NAN. Although it currently builds
fine with -std=gnu90 against Linux glibc, it fails to build with
a stricter C library.

Specify C99 compiler flag for tinycbor source files.

Signed-off-by: Yiting Wang <[email protected]>
@aggarg aggarg merged commit 20ec959 into aws:main Nov 19, 2021
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