home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / ImageMagick / magick / magick.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  1.2 KB  |  59 lines

  1. /*
  2.   Include declarations
  3. */
  4. #include <stdio.h>
  5. #if defined(__STDC__) || defined(sgi) || defined(_AIX)
  6. #include <stdlib.h>
  7. #include <unistd.h>
  8. #else
  9. #ifndef vms
  10. #include <malloc.h>
  11. #include <memory.h>
  12. #endif
  13. #endif
  14. #include <ctype.h>
  15. #include <string.h>
  16. #include <time.h>
  17. #include <math.h>
  18. #include <signal.h>
  19. #include <sys/types.h>
  20. #include <sys/stat.h>
  21. #undef index
  22.  
  23. /*
  24.   Define declarations for the Display program.
  25. */
  26. #if __STDC__ || defined(sgi) || defined(_AIX)
  27. #define _Declare(formal_parameters) formal_parameters
  28. #else
  29. #define const 
  30. #define _Declare(formal_parameters) ()
  31. #endif
  32. #define DownShift(x) ((int) ((x)+(1L << 15)) >> 16)
  33. #define False  0
  34. #define Max(x,y)  (((x) > (y)) ? (x) : (y))
  35. #define Min(x,y)  (((x) < (y)) ? (x) : (y))
  36. #define MinInfoSize (1 << 18)
  37. #define True  1
  38. #define UpShift(x) ((x) << 16)
  39. #define UpShifted(x) ((int) ((x)*(1L << 16)+0.5))
  40. #ifdef vms
  41. #define pclose(file)  exit(1)
  42. #define popen(command,mode)  exit(1)
  43. #define unlink(file)  remove(file)
  44. #endif
  45.  
  46. /*
  47.   Typedef declarations.
  48. */
  49. typedef void
  50.   (*ErrorHandler) _Declare((char *,char *));
  51.  
  52. /*
  53.   Variable declarations.
  54. */
  55. #ifndef lint
  56. static char 
  57.   Version[]="@(#)ImageMagick 2.3.7 94/04/01 cristy@dupont.com";
  58. #endif
  59.