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.7 by root, Thu Sep 14 22:34:00 2006 UTC vs.
Revision 1.9 by pippijn, Mon Dec 11 19:46:46 2006 UTC

27 * nasty system dependent stuff is contained here, with the program 27 * nasty system dependent stuff is contained here, with the program
28 * calling these functions. 28 * calling these functions.
29 */ 29 */
30 30
31 31
32#ifdef WIN32 /* ---win32 exclude/include headers */
33# include "process.h"
34# define pid_t int /* we include it non global, because there is a redefinition in python.h */
35#else
36# include <ctype.h> 32#include <ctype.h>
37# include <sys/stat.h> 33#include <sys/stat.h>
38# include <sys/wait.h> 34#include <sys/wait.h>
39 35
40# include <sys/param.h> 36#include <sys/param.h>
41# include <stdio.h> 37#include <stdio.h>
42 38
43/* Need to pull in the HAVE_... values somehow */ 39/* Need to pull in the HAVE_... values somehow */
44 40
45/* win32 reminder: always put this in a ifndef win32 block */
46# include <autoconf.h> 41#include <autoconf.h>
47#endif
48 42
49 43
50#ifdef HAVE_STDLIB_H 44#ifdef HAVE_STDLIB_H
51# include <stdlib.h> 45# include <stdlib.h>
52#endif 46#endif
382 * then it opens it and returns the file-pointer. 376 * then it opens it and returns the file-pointer.
383 */ 377 */
384FILE * 378FILE *
385open_and_uncompress (const char *name, int flag, int *compressed) 379open_and_uncompress (const char *name, int flag, int *compressed)
386{ 380{
387 size_t i;
388 FILE *fp;
389
390 *compressed = 0; 381 *compressed = 0;
391 return fopen (name, "r"); 382 return fopen (name, "r");
392} 383}
393 384
394/* 385/*

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines