Skip to content

Require C99 compiler - #81

Merged
erikd merged 1 commit into
libsndfile:masterfrom
Flamefire:c99
Aug 10, 2019
Merged

Require C99 compiler#81
erikd merged 1 commit into
libsndfile:masterfrom
Flamefire:c99

Conversation

@Flamefire

Copy link
Copy Markdown
Contributor

Already required for configure builds, now also for CMake builds.
Simplifies some code as e.g. lrint and stdint.h are always available.
Closes #77

Note: Always links to libm (if found) as required by the C standard when using functions from math.h. If those are inlined the linker will discard anything from libm which isn't used, even everything. So there is no downside. The previous attempt checking IF linking it is required was brittle, because multi-config generators might require it for Debug builds but not Release builds causing compile failures.

Already required for configure builds, now also for CMake builds.
Simplifies some code as e.g. lrint and stdint.h are always available.
Closes libsndfile#77
@Flamefire

Copy link
Copy Markdown
Contributor Author

Rebased on master. @erikd Any more issues with this?

@erikd

erikd commented Aug 9, 2019

Copy link
Copy Markdown
Member

Has MSVC caught up to C99 yet? For the longest time (at least 5 years since I last checked) it hadn't.

@Flamefire

Copy link
Copy Markdown
Contributor Author

It at least supports all features used (VAM, stdint.h, lrint, ...) You can double-check if you merge #82 which uses VS 2017 on travis.

@erikd
erikd merged commit ab8b482 into libsndfile:master Aug 10, 2019
@Flamefire
Flamefire deleted the c99 branch August 10, 2019 10:02
@Be-ing Be-ing mentioned this pull request Jan 15, 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.

BUG: Use C99 flexible arrays instead of type[1] trailing member

2 participants