diff options
author | dscho <dscho> | 2007-04-06 09:04:15 +0000 |
---|---|---|
committer | dscho <dscho> | 2007-04-06 09:04:15 +0000 |
commit | 26b291bf25aca6d0cca3fbddc803f7ba8e1aead8 (patch) | |
tree | dcf726192decf3c964b8e378d4d749d6148bb0e7 /rfb | |
parent | 1060f747be30b8c4c5fb09f64349b300ef863303 (diff) | |
download | libtdevnc-26b291bf25aca6d0cca3fbddc803f7ba8e1aead8.tar.gz libtdevnc-26b291bf25aca6d0cca3fbddc803f7ba8e1aead8.zip |
rfbclient.h: use 'extern "C"' to make it convenient to include from C++
Diffstat (limited to 'rfb')
-rw-r--r-- | rfb/rfbclient.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rfb/rfbclient.h b/rfb/rfbclient.h index 541fee1..975a66a 100644 --- a/rfb/rfbclient.h +++ b/rfb/rfbclient.h @@ -54,6 +54,11 @@ #define DEFAULT_VIA_CMD \ (DEFAULT_SSH_CMD " -f -L %L:%H:%R %G sleep 20") +#if(defined __cplusplus) +extern "C" +{ +#endif + /* vncrec */ typedef struct { @@ -322,5 +327,9 @@ rfbBool rfbInitClient(rfbClient* client,int* argc,char** argv); /* rfbClientCleanup() does not touch client->frameBuffer */ void rfbClientCleanup(rfbClient* client); +#if(defined __cplusplus) +} +#endif + #endif |