~ubuntu-branches/ubuntu/maverick/crossfire-client/maverick

« back to all changes in this revision

Viewing changes to common/client-types.h

  • Committer: Bazaar Package Importer
  • Author(s): Kari Pahula
  • Date: 2010-06-17 21:55:04 UTC
  • mfrom: (1.2.8 upstream) (3.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100617215504-864remyqayon6dot
Tags: 1.50.0-2
Install cfsndserv*, not cfsndserv_alsa9 to make kfreebsd land happy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * static char *rcsid_client_types_h =
3
 
 *   "$Id$";
 
2
 * static char *rcsid_common_client_types_h =
 
3
 *   "$Id: client-types.h 12149 2009-08-20 02:11:28Z kbulgrien $";
4
4
 */
5
5
/*
6
6
    Crossfire client, a client program for the crossfire program.
24
24
    The author can be reached via e-mail to crossfire-devel@real-time.com
25
25
*/
26
26
 
 
27
/**
 
28
 * @file common/client-types.h
 
29
 *
 
30
 */
 
31
 
27
32
#ifndef CLIENT_TYPES_H
28
33
#define CLIENT_TYPES_H
29
34
#include <cconfig.h>
55
60
#  include <fcntl.h>
56
61
#endif
57
62
 
58
 
#ifdef WIN32
59
 
#  include <winsock2.h>
60
 
#endif
61
 
 
62
 
#ifdef HAVE_PTHREAD_H
63
 
#  include <pthread.h>
64
 
#endif
65
 
 
66
63
/* Just some handy ones I like to use */
67
64
#ifndef FALSE
68
65
#define FALSE 0
110
107
#define FMT64               "I64d"
111
108
#define FMT64U              "I64u"
112
109
 
113
 
/* mingw defines rand and srand only */
114
 
#ifndef random
115
 
#define random rand
116
 
#endif
117
 
#ifndef srandom
118
 
#define srandom srand
119
110
#endif
120
111
 
121
 
#endif
122
112
 
123
113
#ifndef SOL_TCP
124
114
#define SOL_TCP IPPROTO_TCP