From 48540940b6c28bb4378abfeb500ec45a625b37b6 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Tue, 15 May 2012 10:38:20 +0000 Subject: initial commit git-svn-id: http://svn.miranda-ng.org/main/trunk@2 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Yahoo/libyahoo2/config.h | 71 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 protocols/Yahoo/libyahoo2/config.h (limited to 'protocols/Yahoo/libyahoo2/config.h') diff --git a/protocols/Yahoo/libyahoo2/config.h b/protocols/Yahoo/libyahoo2/config.h new file mode 100644 index 0000000000..c512971fa6 --- /dev/null +++ b/protocols/Yahoo/libyahoo2/config.h @@ -0,0 +1,71 @@ +/* + * $Id: config.h 9339 2009-04-05 00:15:32Z gena01 $ + * + * myYahoo Miranda Plugin + * + * Authors: Gennady Feldman (aka Gena01) + * Laurent Marechal (aka Peorth) + * + * This code is under GPL and is based on AIM, MSN and Miranda source code. + * I want to thank Robert Rainwater and George Hazan for their code and support + * and for answering some of my questions during development of this plugin. + */ + +#ifndef _YAHOO_CONFIG_H_ +#define _YAHOO_CONFIG_H_ + +#define HAVE_STRING_H 1 +#define STDC_HEADERS 1 +#define HAVE_STRCHR 1 +#define HAVE_MEMCPY 1 + +#define PACKAGE "libyahoo2" +#define VERSION "0.7.5" + +#include + +#include +#include + +#define strlen lstrlenA +#define strcat lstrcatA +#define strcmp lstrcmpA +#define strcpy lstrcpyA + +#ifdef _MSC_VER + +#define strncasecmp strnicmp + +#define wsnprintf _wsnprintf +#define snprintf _snprintf +#define vsnprintf _vsnprintf + +#endif + +#define USE_STRUCT_CALLBACKS + +#define write(a,b,c) send(a,b,c,0) +#define read(a,b,c) recv(a,b,c,0) + +#include +#include +#define close(a) Netlib_CloseHandle((HANDLE)a) + +/* + * Need to handle MD5 through Miranda. otherwise just include some md5.h implementation instead + */ +#include + +#define md5_byte_t mir_md5_byte_t +#define md5_state_t mir_md5_state_t + +#define md5_init(A) md5i.md5_init(A) +#define md5_append(A,B,C) md5i.md5_append(A,B,C) +#define md5_finish(A,B) md5i.md5_finish(A,B) + +#define sha1_ctx mir_sha1_ctx +#define sha1_init(A) sha1i.sha1_init(A) +#define sha1_append(A,B,C) sha1i.sha1_append(A,B,C) +#define sha1_finish(A,B) sha1i.sha1_finish(A,B) + +#endif -- cgit v1.2.3