CDRIVER-4521 Remove C89 compatibility macros #1181
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves CDRIVER-4521. Followup to #1138. Verified by this patch.
This is part of a continued effort to establish C99 as the minimum supported C standard:
__STDC_VERSION__
is required by implementations as of C95, but may not be present on MSVC without specifying C11 conformance, sodefined(__STDC_VERSION__)
must still be used.defined(__STDC_VERSION__)
was added prior to use of__STDC_VERSION__
inbson-memory.c
for consistency.__STDC_VERSION__ >= 199901L
as of C99 (if present), so tests for__STDC_VERSION__ < 199901L
have been removed.__FUNCTION__
inbson-macros.h
was preconditioned on pre-C99 compiler extensions, so it is therefore removed in favor of__func__
unless using MSVC.*_MIN
and*_MAX
macros for integral types were added in C99 in<stdint.h>
, so their substitutions inbson-compat.h
are now removed.