Skip to content

Conversation

@eramongodb
Copy link
Contributor

Resolves CXX-3171. Followup to #1202. Verified by this patch.

Removes all obsoleted export macros which have been superceded by BSONCXX_ABI_EXPORT* macros.

This uncovered some stray BSONCXX_INLINE macros which were missed by #1202. The BSONCXX_DEPRECATED*_EXPORT macros were also not being #undef'd properly, but given they're not expected to be used by anyone (including ourselves) this appears to have been a benign bug.

@eramongodb eramongodb requested a review from kevinAlbs November 8, 2024 16:38
@eramongodb eramongodb self-assigned this Nov 8, 2024
Copy link
Collaborator

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with no-longer-needed references to MONGOCXX_CALL and MONGOCXX_INLINE removed.

#define MONGOCXX_INLINE inline MONGOCXX_ABI_NO_EXPORT

// For backward compatibility. Use MONGOCXX_ABI_EXPORT_CDECL instead.
#define MONGOCXX_CALL MONGOCXX_ABI_CDECL
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove MONGOCXX_INLINE and MONGOCXX_CALL from prelude/postlude headers and macro guard checks.

@eramongodb eramongodb merged commit b988c30 into mongodb:master Nov 8, 2024
5 of 7 checks passed
@eramongodb eramongodb deleted the cxx-3171 branch November 8, 2024 19:10
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.

2 participants