fix for re-declarations of xgnutls_free

This commit is contained in:
Stephen Birarda 2014-04-10 12:14:37 -07:00
parent 97444eac1c
commit 38867a2f09
2 changed files with 5 additions and 3 deletions

View file

@ -14,6 +14,10 @@
#include "NodeList.h"
#include "DTLSSession.h"
void xgnutls_free(void* gnutlsPtr){
gnutls_free(gnutlsPtr);
}
int DTLSSession::socketPullTimeout(gnutls_transport_ptr_t ptr, unsigned int ms) {
DTLSSession* session = static_cast<DTLSSession*>(ptr);
QUdpSocket& dtlsSocket = session->_dtlsSocket;

View file

@ -28,9 +28,7 @@ typedef void (*gnutls_free_function) (void *);
__declspec(dllimport) extern gnutls_free_function gnutls_free;
#endif
void xgnutls_free(void* gnutlsPtr){
gnutls_free(gnutlsPtr);
}
void xgnutls_free(void* gnutlsPtr);
class DTLSSession : public DummyDTLSSession {
Q_OBJECT