Skip to content

Move closing header guard to end of file#19

Open
MaidenJD wants to merge 1 commit intotsoding:masterfrom
MaidenJD:master
Open

Move closing header guard to end of file#19
MaidenJD wants to merge 1 commit intotsoding:masterfrom
MaidenJD:master

Conversation

@MaidenJD
Copy link
Copy Markdown

Currently, if you include sv.h in multiple header files in the same compilation unit as the SV_IMPLEMENTATION define, compilation will fail due to multiple definitions of each function in the implementation.

To avoid this, this pull request moves the closing header guard for SV_H_ to the end of the file. This is similar to what is done in the stb headers to avoid the same issue.

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.

1 participant