diff --git a/CgeNet.h b/CgeNet.h index 69d310c..f4f90e2 100644 --- a/CgeNet.h +++ b/CgeNet.h @@ -1,6 +1,10 @@ #ifndef CGE_NET_H #define CGE_NET_H +#ifdef __cplusplus +extern "C" { +#endif + #include #include @@ -99,4 +103,8 @@ int CgeNetPollAdd(CgeNetPoll *poll, CgeNetSocket *socket, int CgeNetPollRemove(CgeNetPoll *poll, CgeNetSocket *socket); int CgeNetPollWait(CgeNetPoll *poll, int timeout); +#ifdef __cplusplus +} +#endif + #endif /* CGE_NET_H */