ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/porting.C
(Generate patch)

Comparing deliantra/server/common/porting.C (file contents):
Revision 1.6 by root, Tue Sep 12 23:22:32 2006 UTC vs.
Revision 1.9 by pippijn, Mon Dec 11 19:46:46 2006 UTC

1
2/*
3 * static char *rcsid_porting_c =
4 * "$Id: porting.C,v 1.6 2006/09/12 23:22:32 root Exp $";
5 */
6
7/* 1/*
8 CrossFire, A Multiplayer game for X-windows 2 CrossFire, A Multiplayer game for X-windows
9 3
10 Copyright (C) 2002 Mark Wedel & Crossfire Development Team 4 Copyright (C) 2002 Mark Wedel & Crossfire Development Team
11 Copyright (C) 1992 Frank Tore Johansen 5 Copyright (C) 1992 Frank Tore Johansen
22 16
23 You should have received a copy of the GNU General Public License 17 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software 18 along with this program; if not, write to the Free Software
25 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 20
27 The authors can be reached via e-mail at crossfire-devel@real-time.com 21 The authors can be reached via e-mail at <crossfire@schmorp.de>
28*/ 22*/
29 23
30/* This file contains various functions that are not really unique for 24/* This file contains various functions that are not really unique for
31 * crossfire, but rather provides what should be standard functions 25 * crossfire, but rather provides what should be standard functions
32 * for systems that do not have them. In this way, most of the 26 * for systems that do not have them. In this way, most of the
33 * nasty system dependent stuff is contained here, with the program 27 * nasty system dependent stuff is contained here, with the program
34 * calling these functions. 28 * calling these functions.
35 */ 29 */
36 30
37 31
38#ifdef WIN32 /* ---win32 exclude/include headers */
39# include "process.h"
40# define pid_t int /* we include it non global, because there is a redefinition in python.h */
41#else
42# include <ctype.h> 32#include <ctype.h>
43# include <sys/stat.h> 33#include <sys/stat.h>
44# include <sys/wait.h> 34#include <sys/wait.h>
45 35
46# include <sys/param.h> 36#include <sys/param.h>
47# include <stdio.h> 37#include <stdio.h>
48 38
49/* Need to pull in the HAVE_... values somehow */ 39/* Need to pull in the HAVE_... values somehow */
50 40
51/* win32 reminder: always put this in a ifndef win32 block */
52# include <autoconf.h> 41#include <autoconf.h>
53#endif
54 42
55 43
56#ifdef HAVE_STDLIB_H 44#ifdef HAVE_STDLIB_H
57# include <stdlib.h> 45# include <stdlib.h>
58#endif 46#endif
388 * then it opens it and returns the file-pointer. 376 * then it opens it and returns the file-pointer.
389 */ 377 */
390FILE * 378FILE *
391open_and_uncompress (const char *name, int flag, int *compressed) 379open_and_uncompress (const char *name, int flag, int *compressed)
392{ 380{
393 size_t i;
394 FILE *fp;
395
396 *compressed = 0; 381 *compressed = 0;
397 return fopen (name, "r"); 382 return fopen (name, "r");
398} 383}
399 384
400/* 385/*

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines