ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/win32.h
(Generate patch)

Comparing deliantra/server/include/win32.h (file contents):
Revision 1.1.1.2 by elmex, Wed Mar 15 14:04:54 2006 UTC vs.
Revision 1.4 by root, Sat Sep 16 22:06:17 2006 UTC

5 5
6#if !defined(AFX_STDAFX_H__31666CA1_2474_11D5_AE6C_F07569C10000__INCLUDED_) 6#if !defined(AFX_STDAFX_H__31666CA1_2474_11D5_AE6C_F07569C10000__INCLUDED_)
7#define AFX_STDAFX_H__31666CA1_2474_11D5_AE6C_F07569C10000__INCLUDED_ 7#define AFX_STDAFX_H__31666CA1_2474_11D5_AE6C_F07569C10000__INCLUDED_
8 8
9/* Define the version here. In Unixland, it's defined on the command line now. */ 9/* Define the version here. In Unixland, it's defined on the command line now. */
10#define VERSION "1.9.0" 10#define VERSION "1.9.1"
11 11
12#pragma warning(disable: 4761) /* integral size mismatch in argument; conversion supplied */ 12#pragma warning(disable: 4761) /* integral size mismatch in argument; conversion supplied */
13 13
14#if _MSC_VER > 1000 14#if _MSC_VER > 1000
15#pragma once 15#pragma once
117#define PLUGIN_SUFFIX ".dll" 117#define PLUGIN_SUFFIX ".dll"
118 118
119/* struct dirent - same as Unix */ 119/* struct dirent - same as Unix */
120 120
121typedef struct dirent { 121typedef struct dirent {
122 long d_ino; /* inode (always 1 in WIN32) */ 122 long d_ino; /* inode (always 1 in WIN32) */
123 off_t d_off; /* offset to this dirent */ 123 off_t d_off; /* offset to this dirent */
124 unsigned short d_reclen; /* length of d_name */ 124 unsigned short d_reclen; /* length of d_name */
125 char d_name[_MAX_FNAME + 1]; /* filename (null terminated) */ 125 char d_name[_MAX_FNAME + 1]; /* filename (null terminated) */
126}dirent; 126}dirent;
127 127
128#define NAMLEN(dirent) strlen((dirent)->d_name) 128#define NAMLEN(dirent) strlen((dirent)->d_name)
129 129
130/* typedef DIR - not the same as Unix */ 130/* typedef DIR - not the same as Unix */
131typedef struct { 131typedef struct {
132 long handle; /* _findfirst/_findnext handle */ 132 long handle; /* _findfirst/_findnext handle */
133 short offset; /* offset into directory */ 133 short offset; /* offset into directory */
134 short finished; /* 1 if there are not more files */ 134 short finished; /* 1 if there are not more files */
135 struct _finddata_t fileinfo; /* from _findfirst/_findnext */ 135 struct _finddata_t fileinfo; /* from _findfirst/_findnext */
136 char *dir; /* the dir we are reading */ 136 char *dir; /* the dir we are reading */
137 struct dirent dent; /* the dirent to return */ 137 struct dirent dent; /* the dirent to return */
138} DIR; 138} DIR;
139 139
140#ifndef socklen_t 140#ifndef socklen_t
141#define socklen_t int /* Doesn't exist, just a plain int */ 141#define socklen_t int /* Doesn't exist, just a plain int */
142#endif 142#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines