home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
MISC
/
MN325SRC.ZIP
/
makenl-3.2.5
/
src
/
os.c
< prev
next >
Wrap
C/C++ Source or Header
|
2005-02-06
|
1KB
|
63 lines
/* os.c -- Operating system dependant functions for makenl */
/* $Id: os.c,v 1.5 2004/09/03 21:46:23 mbroek Exp $ */
#include <stdio.h>
#include <string.h>
#include "fileutil.h"
#include "makenl.h"
#include "os.h"
#include "mklog.h"
#ifdef MALLOC_DEBUG
#include "rmalloc.h"
#endif
#ifdef DMALLOC
#include "dmalloc.h"
#endif
/* Definitions for: */
/* __GNUC__ GNU C Compiler under DOS and OS/2 and linux */
/* __unix__ GNU C Compiler under Unix (tested with linux) */
/* __EMX__ emx+gcc for DOS/OS2 */
/* __WATCOMC__ Watcom C Compiler 10.0b under DOS, OS/2 and Win32 */
/* __TURBOC__ Turbo C 2.00 and above, Borland C, under DOS */
#ifndef OSFUL
#error "No os_fullpath for this compiler/OS, giving up!"
#endif
#include OSFUL
#ifndef OSFND
#error "No os_findfirst/os_findnext/os_findclose for this compiler/OS, giving up!"
#endif
#include OSFND
/* os_deslashify */
#include OSDSL
/* os_fulldir */
#include OSFLD
/* os_findfile */
#include OSFF
/* os_append_slash */
#include OSAPS
/* os_remove_slash */
#include OSRMS
/* os_file_getname */
#include OSGTN
/* os_spawn */
#include OSEXC
/* os_file_canonify */
#include OSCAN
#ifndef HAVE_STRUPR
#include "osgenupr.c"
#endif
#ifdef USE_OWN_FGETS
#include USE_OWN_FGETS
#endif