Created
December 19, 2018 00:25
-
-
Save tomdaley92/5aac4a5635798ec482c78f60600a7cd8 to your computer and use it in GitHub Desktop.
Prevent name mangling of C code with C++ compiler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef __cplusplus | |
extern "C" { | |
#endif | |
/* Declarations of this file */ | |
#ifdef __cplusplus | |
} | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The entire contents of the header file would go where the comment goes.
Some more useful information: