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 >
C/C++ Source or Header  |  2005-02-06  |  1KB  |  63 lines

  1. /* os.c -- Operating system dependant functions for makenl */
  2.  
  3. /* $Id: os.c,v 1.5 2004/09/03 21:46:23 mbroek Exp $ */
  4.  
  5. #include <stdio.h>
  6. #include <string.h>
  7. #include "fileutil.h"
  8. #include "makenl.h"
  9. #include "os.h"
  10. #include "mklog.h"
  11.  
  12. #ifdef MALLOC_DEBUG
  13. #include "rmalloc.h"
  14. #endif
  15.  
  16. #ifdef DMALLOC
  17. #include "dmalloc.h"
  18. #endif
  19.  
  20. /* Definitions for:                                               */
  21. /* __GNUC__     GNU C Compiler under DOS and OS/2 and linux       */
  22. /* __unix__     GNU C Compiler under Unix (tested with linux)     */
  23. /* __EMX__      emx+gcc for DOS/OS2                               */
  24. /* __WATCOMC__  Watcom C Compiler 10.0b under DOS, OS/2 and Win32 */
  25. /* __TURBOC__   Turbo C 2.00 and above, Borland C, under DOS      */
  26.  
  27. #ifndef OSFUL
  28. #error "No os_fullpath for this compiler/OS, giving up!"
  29. #endif
  30. #include OSFUL
  31.  
  32. #ifndef OSFND
  33. #error "No os_findfirst/os_findnext/os_findclose for this compiler/OS, giving up!"
  34. #endif
  35. #include OSFND
  36.  
  37.  
  38. /* os_deslashify */
  39. #include OSDSL
  40. /* os_fulldir */
  41. #include OSFLD
  42. /* os_findfile */
  43. #include OSFF
  44. /* os_append_slash */
  45. #include OSAPS
  46. /* os_remove_slash */
  47. #include OSRMS
  48. /* os_file_getname */
  49. #include OSGTN
  50. /* os_spawn */
  51. #include OSEXC
  52. /* os_file_canonify */
  53. #include OSCAN
  54.  
  55. #ifndef HAVE_STRUPR
  56. #include "osgenupr.c"
  57. #endif
  58.  
  59.  
  60. #ifdef USE_OWN_FGETS
  61. #include USE_OWN_FGETS
  62. #endif
  63.