diff options
Diffstat (limited to 'tests/sockets.h')
| -rw-r--r-- | tests/sockets.h | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/tests/sockets.h b/tests/sockets.h index 99d6efca..55077ae9 100644 --- a/tests/sockets.h +++ b/tests/sockets.h @@ -25,6 +25,10 @@   #error "Please include config.h first."  #endif +#ifdef __cplusplus +extern "C" { +#endif +  #define SOCKETS_1_0 0x0001  #define SOCKETS_1_1 0x0101  #define SOCKETS_2_0 0x0002 @@ -43,6 +47,11 @@ int gl_sockets_cleanup (void)  #endif    ; +#ifdef __cplusplus +} +#endif + +  /* This function is useful it you create a socket using gnulib's     Winsock wrappers but needs to pass on the socket handle to some     other library that only accepts sockets. */ | 
