Skip to content

Add io.h, remove share.h from sample code in errno documentation#3345

Merged
ktoliver merged 2 commits into
MicrosoftDocs:masterfrom
NikoAri:pr/NikoAri/3343
Sep 1, 2021
Merged

Add io.h, remove share.h from sample code in errno documentation#3345
ktoliver merged 2 commits into
MicrosoftDocs:masterfrom
NikoAri:pr/NikoAri/3343

Conversation

@NikoAri

@NikoAri NikoAri commented Sep 1, 2021

Copy link
Copy Markdown
Contributor

No description provided.

Repro:

1. Paste sample code for _get_errno is placed into new Visual Studio 2019 project
1. Try to compile

Result:
Compilation fails
The error is:
Error	C3861	'_sopen_s': identifier not found	

Expected Result:
Sample code should just compile

Fix:
Add io.h header file to avoid the above error in sample code.
@PRMerger15

Copy link
Copy Markdown
Contributor

@NikoAri : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@TylerMSFT TylerMSFT left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you very much for improving this doc! Appreciate you taking the time to fix this issue.

@ktoliver ktoliver merged commit e14cbaa into MicrosoftDocs:master Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants