What does this do?

Started by
0 comments, last by onlinegmz 22 years, 5 months ago
I searched MSDN and couldn''t find anything but what does this do..... #ifdef __cplusplus extern "C" { #endif
Advertisement
if you are compiling in c++ and trying to link to a library written in straight C, then you use the extern "C" around the function prototypes that belong to the library written in C...you only use it if you wrote a library in C and want to use it in C++

This topic is closed to new replies.

Advertisement