mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 07:47:30 +02:00
fix for re-declarations of xgnutls_free
This commit is contained in:
parent
97444eac1c
commit
38867a2f09
2 changed files with 5 additions and 3 deletions
|
@ -14,6 +14,10 @@
|
||||||
#include "NodeList.h"
|
#include "NodeList.h"
|
||||||
#include "DTLSSession.h"
|
#include "DTLSSession.h"
|
||||||
|
|
||||||
|
void xgnutls_free(void* gnutlsPtr){
|
||||||
|
gnutls_free(gnutlsPtr);
|
||||||
|
}
|
||||||
|
|
||||||
int DTLSSession::socketPullTimeout(gnutls_transport_ptr_t ptr, unsigned int ms) {
|
int DTLSSession::socketPullTimeout(gnutls_transport_ptr_t ptr, unsigned int ms) {
|
||||||
DTLSSession* session = static_cast<DTLSSession*>(ptr);
|
DTLSSession* session = static_cast<DTLSSession*>(ptr);
|
||||||
QUdpSocket& dtlsSocket = session->_dtlsSocket;
|
QUdpSocket& dtlsSocket = session->_dtlsSocket;
|
||||||
|
|
|
@ -28,9 +28,7 @@ typedef void (*gnutls_free_function) (void *);
|
||||||
__declspec(dllimport) extern gnutls_free_function gnutls_free;
|
__declspec(dllimport) extern gnutls_free_function gnutls_free;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void xgnutls_free(void* gnutlsPtr){
|
void xgnutls_free(void* gnutlsPtr);
|
||||||
gnutls_free(gnutlsPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
class DTLSSession : public DummyDTLSSession {
|
class DTLSSession : public DummyDTLSSession {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
Loading…
Reference in a new issue