Skip to content

CDRIVER-4454: Use consistent include path for mcd-time.h #1154

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

Merged
merged 1 commit into from
Dec 1, 2022

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented Nov 30, 2022

https://jira.mongodb.org/browse/CDRIVER-4454

This include was inconsistent with all others in libmongoc. The path is necessary for compilation in Visual Studio when "src/libmongoc/src/libmongoc/src" is used as an include path.

This was originally introduced in 686bff8


This was responsible for a Windows build failure in PHPC: https://github.com/mongodb/mongo-php-driver/actions/runs/3581633513/jobs/6024994327#step:7:299

d:\a\mongo-php-driver\mongo-php-driver\src\libmongoc\src\libmongoc\src\mongoc\./mcd-azure.h(26): fatal error C1083: Cannot open include file: 'mcd-time.h': No such file or directory (compiling source file D:\a\mongo-php-driver\mongo-php-driver\src\libmongoc\src\libmongoc\src\mongoc\mcd-azure.c)

See also: https://learn.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2012/36k2cdd4(v=vs.110)

This include was inconsistent with all others in libmongoc. The path is necessary for compilation in Visual Studio when "src/libmongoc/src/libmongoc/src" is used as an include path.

This was originally introduced in 686bff8
@jmikola jmikola merged commit a60ac70 into master Dec 1, 2022
@jmikola jmikola deleted the cdriver-4454-fix-include-path branch December 1, 2022 13: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