~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/drizzle.h

  • Committer: Monty Taylor
  • Date: 2010-12-26 01:32:11 UTC
  • mto: This revision was merged to the branch mainline in revision 2038.
  • Revision ID: mordred@inaugust.com-20101226013211-c1tx52h7evovmijg
fixed dict and eval.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
#ifndef __DRIZZLE_H
43
43
#define __DRIZZLE_H
44
44
 
 
45
#if !defined(__cplusplus)
 
46
# include <stdbool.h>
 
47
#endif
45
48
 
46
49
#include <inttypes.h>
47
50
#include <sys/types.h>
48
51
 
49
52
#ifdef _WIN32
50
 
# define WIN32_LEAN_AND_MEAN
51
 
 
52
 
# include <Windows.h>
53
53
# include <winsock2.h>
54
54
# include <ws2tcpip.h>
55
 
# include <io.h>
56
 
 
57
 
# undef close
58
 
# define close _close
 
55
 
 
56
# include <errno.h>
 
57
# define EINPROGRESS WSAEINPROGRESS
 
58
# define EALREADY WSAEALREADY
 
59
# define EISCONN WSAEISCONN
 
60
# define ENOBUFS WSAENOBUFS
 
61
# define ECONNREFUSED WSAECONNREFUSED
 
62
# define ENETUNREACH WSAENETUNREACH
 
63
# define ETIMEDOUT WSAETIMEDOUT
 
64
# define ECONNRESET WSAECONNRESET 
 
65
# define EADDRINUSE WSAEADDRINUSE
 
66
# define EOPNOTSUPP WSAEOPNOTSUPP
 
67
# define ENOPROTOOPT WSAENOPROTOOPT
 
68
 
59
69
typedef unsigned int in_port_t;
60
 
typedef long ssize_t;
61
 
 
62
 
# define snprintf _snprintf
63
 
# define inline __inline
64
70
 
65
71
struct sockaddr_un
66
72
{
68
74
  char sun_path[108];
69
75
};
70
76
 
71
 
# define poll WSAPoll
72
 
//# define pollfd WSAPOLLFD
73
 
 
74
 
#if defined(__GNUC__)
75
 
# include <stdbool.h>
76
 
#else
77
 
typedef enum { false = 0, true = 1 } _Bool;
78
 
typedef _Bool bool;
79
 
#endif
80
 
 
81
 
#else
82
 
# if !defined(__cplusplus)
83
 
#  include <stdbool.h>
84
 
# endif
 
77
 
 
78
#else
85
79
# include <sys/socket.h>
86
80
# include <netinet/in.h>
87
81
# include <arpa/inet.h>
88
82
# include <sys/un.h>
89
83
# include <netdb.h>
90
 
# include <poll.h>
91
84
#endif
92
85
 
93
 
#include <assert.h>
94
 
#include <errno.h>
 
86
#include <poll.h>
95
87
 
96
88
#include <libdrizzle/visibility.h>
97
89
#include <libdrizzle/constants.h>