~mordred/libmemcached/merge-vs-work

« back to all changes in this revision

Viewing changes to win32/windows/config.h

  • Committer: Monty Taylor
  • Date: 2011-02-13 18:47:03 UTC
  • Revision ID: mordred@inaugust.com-20110213184703-usxdc2h4do3bnxhx
Build for Visual Studio.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* LibMemcached
 
2
 * Copyright (C) 2010 Monty Taylor
 
3
 * All rights reserved.
 
4
 *
 
5
 * Use and distribution licensed under the BSD license.  See
 
6
 * the COPYING file in the parent directory for full text.
 
7
 */
 
8
 
 
9
#ifndef WIN32_WINDOWS_CONFIG_H
 
10
#define WIN32_WINDOWS_CONFIG_H
 
11
 
 
12
#define HAVE_FCNTL_H 1
 
13
#define HAVE_STDLIB_H 1
 
14
#define HAVE_STRING_H 1
 
15
#define TARGET_OS_WINDOWS 1
 
16
#define PACKAGE_VERSION "0.43"
 
17
#define PACKAGE_BUGREPORT "http://bugs.launchpad.net/libmemcached"
 
18
#define poll WSAPoll
 
19
#define __attribute__(...)
 
20
#define __STDC_LIMIT_MACROS 1
 
21
#define __STDC_CONSTANT_MACROS 1
 
22
#define snprintf _snprintf
 
23
#define get_socket_errno() WSAGetLastError()
 
24
 
 
25
typedef long ssize_t;
 
26
 
 
27
#include <WinSock2.h>
 
28
#include <WS2tcpip.h>
 
29
 
 
30
#endif /* WIN32_WINDOWS_CONFIG_H */