cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Macro
Macro
Jan 7, 2011 at 10:43am UTC
ankushnandan
(64)
1
2
3
#ifdef __cplusplus
extern
"C"
{
#endif
What Does Above macro means
Jan 7, 2011 at 1:16pm UTC
hamsterman
(4538)
http://msdn.microsoft.com/en-us/library/0603949d(v=vs.80).aspx
In C++, when used with a string, extern specifies that the linkage conventions of another language are being used for the declarator(s)
#ifdef part is there because you don't need to specify C linkage if your writing code in C.
Topic archived. No new replies allowed.