home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / historic / v941.tgz / icon.v941src.tar / icon.v941src / src / h / sys.h < prev    next >
C/C++ Source or Header  |  2002-01-18  |  5KB  |  211 lines

  1. /*
  2.  * sys.h -- system include files.
  3.  */
  4.  
  5. /*
  6.  * Universal (Standard ANSI C) includes.
  7.  */
  8. #include <ctype.h>
  9. #include <errno.h>
  10. #include <math.h>
  11. #include <signal.h>
  12. #include <stdio.h>
  13. #include <stdlib.h>
  14. #include <string.h>
  15. #include <time.h>
  16.  
  17. /*
  18.  * Operating-system-dependent includes.
  19.  */
  20. #if PORT
  21.    Deliberate Syntax Error
  22. #endif                    /* PORT */
  23.  
  24. #if AMIGA
  25.    #include <fcntl.h>
  26.    #include <ios1.h>
  27.    #include <libraries/dosextens.h>
  28.    #include <libraries/dos.h>
  29.    #include <workbench/startup.h>
  30.    #if __SASC
  31.       #include <proto/dos.h>
  32.       #include <proto/icon.h>
  33.       #include <proto/wb.h>
  34.       #undef GLOBAL
  35.       #undef STATIC            /* defined in <exec/types.h> */
  36.    #endif                /* __SASC */
  37. #endif                    /* AMIGA */
  38.  
  39. #if MACINTOSH
  40.    #if LSC
  41.       #include <unix.h>
  42.    #endif                /* LSC */
  43.    #if MPW
  44.       #define create xx_create    /* prevent duplicate definition of create() */
  45.       #include <Types.h>
  46.       #include <Events.h>
  47.       #include <Files.h>
  48.       #include <FCntl.h>
  49.       #include <Files.h>
  50.       #include <IOCtl.h>
  51.       #include <fp.h>
  52.       #include <OSUtils.h>
  53.       #include <Memory.h>
  54.       #include <Errors.h>
  55.       #include "time.h"
  56.       #include <Quickdraw.h>
  57.       #include <ToolUtils.h>
  58.       #include <CursorCtl.h>
  59.    #endif                /* MPW */
  60.    #ifdef MacGraph
  61.       #include <console.h>
  62.       #include <AppleEvents.h>
  63.       #include <GestaltEqu.h>
  64.       #include <fp.h>
  65.       #include <QDOffscreen.h>
  66.       #include <Palettes.h>
  67.       #include <Quickdraw.h>
  68.    #endif                /* MacGraph */
  69. #endif                    /* MACINTOSH */
  70.  
  71. #if MSDOS
  72.    #undef Type
  73.    #include <sys/types.h>
  74.    #include <sys/stat.h>
  75.    #include <fcntl.h>
  76.  
  77.    #ifdef MSWindows
  78.       #define int_PASCAL int PASCAL
  79.       #define LRESULT_CALLBACK LRESULT CALLBACK
  80.       #define BOOL_CALLBACK BOOL CALLBACK
  81.       #if BORLAND_286
  82.          #include <dir.h>
  83.       #endif                /* BORLAND_286 */
  84.       #include <windows.h>
  85.       #include <mmsystem.h>
  86.       #include <process.h>
  87.       #include "../wincap/dibutil.h"
  88.    #endif                /* MSWindows */
  89.    #include <setjmp.h>
  90.    #define Type(d) (int)((d).dword & TypeMask)
  91.    #undef lst1
  92.    #undef lst2
  93. #endif                    /* MSDOS */
  94.  
  95. #if OS2
  96.    #define INCL_DOS
  97.    #define INCL_ERRORS
  98.    #define INCL_RESOURCES
  99.    #define INCL_DOSMODULEMGR
  100.  
  101.    #ifdef PresentationManager
  102.       #define INCL_PM
  103.    #endif                /* PresentationManager */
  104.  
  105.    #include <os2.h>
  106.    /* Pipe support for OS/2 */
  107.    #include <stddef.h>
  108.    #include <process.h>
  109.    #include <fcntl.h>
  110.  
  111.    #if CSET2V2
  112.       #include <io.h>
  113.       #include <direct.h>
  114.       #define IN_SYS_H
  115.       #include "../h/local.h"        /* Include #pragmas */
  116.       #undef IN_SYS_H
  117.    #endif                /* CSet/2 version 2 */
  118.  
  119. #endif                    /* OS2 */
  120.  
  121. #if UNIX
  122.    #include <dirent.h>
  123.    #include <limits.h>
  124.    #include <unistd.h>
  125.    #include <sys/stat.h>
  126.    #include <sys/time.h>
  127.    #include <sys/times.h>
  128.    #include <sys/types.h>
  129.    #include <termios.h>
  130.    #ifdef SysSelectH
  131.       #include <sys/select.h>
  132.    #endif
  133. #endif                    /* UNIX */
  134.  
  135. #if VMS
  136.    #include <types.h>
  137.    #include <dvidef>
  138.    #include <iodef>
  139.    #include <stsdef.h>
  140. #endif                    /* VMS */
  141.  
  142. /*
  143.  * Window-system-dependent includes.
  144.  */
  145. #ifdef ConsoleWindow
  146.    #include <stdarg.h>
  147.    #undef printf
  148.    #undef fprintf
  149.    #undef fflush
  150.    #define printf Consoleprintf
  151.    #define fprintf Consolefprintf
  152.    #define fflush Consolefflush
  153. #endif                    /* ConsoleWindow */
  154.  
  155. #ifdef XWindows
  156.    /*
  157.     * Undef VMS under UNIX, and UNIX under VMS,
  158.     * to avoid confusing the tests within the X header files.
  159.     */
  160.    #if VMS
  161.       #undef UNIX
  162.       #include "decw$include:Xlib.h"
  163.       #include "decw$include:Xutil.h"
  164.       #include "decw$include:Xos.h"
  165.       #include "decw$include:Xatom.h"
  166.  
  167.       #ifdef HaveXpmFormat
  168.          #include "../xpm/xpm.h"
  169.       #endif                /* HaveXpmFormat */
  170.  
  171.       #undef UNIX
  172.       #define UNIX 0
  173.    #else                /* VMS */
  174.       #undef VMS
  175.  
  176.       #ifdef HaveXpmFormat
  177.          #include "../xpm/xpm.h"
  178.       #else                /* HaveXpmFormat */
  179.          #include <X11/Xlib.h>
  180.       #endif                /* HaveXpmFormat */
  181.  
  182.       #include <X11/Xutil.h>
  183.       #include <X11/Xos.h>
  184.       #include <X11/Xatom.h>
  185.  
  186.       #undef VMS
  187.       #define VMS 0
  188.    #endif                /* VMS */
  189. #endif                    /* XWindows */
  190.  
  191. #ifdef Graphics
  192.    #define VanquishReturn(s) return s;
  193. #endif                    /* Graphics */
  194.  
  195. /*
  196.  * Feature-dependent includes.
  197.  */
  198. #ifndef HostStr
  199.    #if !VMS
  200.       #include <sys/utsname.h>
  201.    #endif                /* !VMS */
  202. #endif                    /* HostStr */
  203.  
  204. #ifdef LoadFunc
  205.    #include <dlfcn.h>
  206. #endif                    /* LoadFunc */
  207.  
  208. #if WildCards
  209.    #include "../h/filepat.h"
  210. #endif                    /* WildCards */
  211.