summaryrefslogtreecommitdiff
path: root/protocols/Gadu-Gadu/src/libgadu/libgadu.h
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-08-02 10:30:03 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-08-02 10:30:03 +0000
commitcbbd3c6607570835250e8f9d9915573ca55b1a96 (patch)
treeff29db33bf1edc1978af6844e2868795b68e7425 /protocols/Gadu-Gadu/src/libgadu/libgadu.h
parentec3212a5f6f4bd7b40cff164ed46c23992943bbe (diff)
c files renamed to cpp
git-svn-id: http://svn.miranda-ng.org/main/trunk@10014 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Gadu-Gadu/src/libgadu/libgadu.h')
-rw-r--r--protocols/Gadu-Gadu/src/libgadu/libgadu.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/protocols/Gadu-Gadu/src/libgadu/libgadu.h b/protocols/Gadu-Gadu/src/libgadu/libgadu.h
index 82214e65ed..6d2db69f96 100644
--- a/protocols/Gadu-Gadu/src/libgadu/libgadu.h
+++ b/protocols/Gadu-Gadu/src/libgadu/libgadu.h
@@ -45,10 +45,6 @@
#pragma pack(push, 1)
#endif
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <sys/types.h>
#include <stdio.h>
#include <stdarg.h>
@@ -169,8 +165,8 @@ typedef signed int int32_t;
# define GG_CONFIG_HAVE_STRTOULL
# define strtoull _strtoui64
# endif
-# define gg_sock_write(sock,buf,len) send(sock,(void *)(buf),len,0)
-# define gg_sock_read(sock,buf,len) recv(sock,(void *)(buf),len,0)
+# define gg_sock_write(sock,buf,len) send(sock,(const char*)(buf),len,0)
+# define gg_sock_read(sock,buf,len) recv(sock,(char*)(buf),len,0)
# define gg_sock_close(sock) closesocket(sock)
# define gg_getsockopt(sock,level,name,val,len) getsockopt(sock,level,name,(char *)val,len)
#else
@@ -2288,10 +2284,6 @@ struct gg_dcc7_aborted {
#define GG_DCC7_TIMEOUT_FILE_ACK 300 /* 5 minut */
#define GG_DCC7_TIMEOUT_VOICE_ACK 300 /* 5 minut */
-#ifdef __cplusplus
-}
-#endif
-
#if defined(__cplusplus) || defined(_WIN32)
#ifdef _WIN32
#pragma pack(pop)