summaryrefslogtreecommitdiff
path: root/protocols/Yahoo/libyahoo2/config.h
blob: 53ef7ca7cf5fbab3efb5ff78cbddb534cb48ccb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
 * $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 <m_stdhdr.h>

#include <windows.h>
#include <stdio.h>

#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 <newpluginapi.h>
#include <m_netlib.h>
#define close(a)	 Netlib_CloseHandle((HANDLE)a)

/*
 * Need to handle MD5 through Miranda. otherwise just include some md5.h implementation instead
 */
#include <m_utils.h>

#endif