git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@219
d7cf8633-e32d-0410-b094-
e92efae38249
// common.c -- misc functions used in client and server
#include <fcntl.h>
-#ifndef WIN32
+#ifdef WIN32
+#include <io.h>
+#else
#include <unistd.h>
#endif
#include <stdlib.h>
int filenamelen;
filenamelen = strlen (filename);
- snprintf (gzfilename, sizeof (gzfilename), "%s.gz", filename);
+ sprintf (gzfilename, "%s.gz", filename);
if (!file)
Sys_Error ("COM_FindFile: file not set");
// in_win.c -- windows 95 mouse and joystick code
// 02/21/97 JCB Added extended DirectInput code to support external controllers.
-#include <dinput.h>
#include "quakedef.h"
#include "winquake.h"
//#include "dosisms.h"
+#include <dinput.h>
+
#define DINPUT_BUFFERSIZE 16
#define iDirectInputCreate(a,b,c,d) pDirectInputCreate(a,b,c,d)
$Id$
*/
+#include "quakedef.h"
#include <stdlib.h>
#include <string.h>
#ifdef WIN32
# include <unistd.h>
#endif
-#define HAVE_ZLIB
-
-#ifdef _MSC_VER
-# define _POSIX_
-#endif
+//#ifdef _MSC_VER
+//# define _POSIX_
+//#endif
#include <stdarg.h>
#include <stdlib.h>
#include <limits.h>
-#include "QF/quakefs.h"
-#include "QF/quakeio.h"
+#ifndef PATH_MAX
+# define PATH_MAX 512
+#endif
+
+#include "quakeio.h"
#ifdef WIN32
# ifndef __BORLANDC__
#ifndef __quakeio_h
#define __quakeio_h
+#define HAVE_ZLIB
+
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <stdio.h>
-#include <zlib.h>
+#ifdef HAVE_ZLIB
+# include <zlib.h>
+# ifdef WIN32
+# undef FAR
+# endif
+#endif
//#include "QF/gcc_attr.h"