version 1.11 | | version 1.12 |
---|
| | |
/* | | /* |
* static char *rcsid_map_c = | | * static char *rcsid_map_c = |
* "$Id: map.c,v 1.11 2001/02/23 06:06:35 mwedel Exp $"; | | * "$Id: map.c,v 1.12 2001/04/06 00:44:33 michtoen Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
#include <funcpoint.h> | | #include <funcpoint.h> |
| | |
#include <loader.h> | | #include <loader.h> |
| | #ifndef WIN32 // ---win32 exclude header |
#include <unistd.h> | | #include <unistd.h> |
| | #endif // win32 |
| | |
extern int nrofallocobjects,nroffreeobjects; | | extern int nrofallocobjects,nroffreeobjects; |
| | |
| | |
| | |
int check_path (char *name, int prepend_dir) | | int check_path (char *name, int prepend_dir) |
{ | | { |
| | #ifdef WIN32 // ***win32: check this sucker in windows style. |
| | return(_access(name,0)); |
| | #else |
char buf[MAX_BUF], *endbuf; | | char buf[MAX_BUF], *endbuf; |
struct stat statbuf; | | struct stat statbuf; |
int mode = 0, i; | | int mode = 0, i; |
| | |
mode |= 2; | | mode |= 2; |
| | |
return (mode); | | return (mode); |
| | #endif |
} | | } |
| | |
void dump_map_lights(mapstruct *m) { | | void dump_map_lights(mapstruct *m) { |