jconfig.cw.mac.h 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. /*
  2. * jconfig.doc
  3. *
  4. * Copyright (C) 1991-1994, Thomas G. Lane.
  5. * This file is part of the Independent JPEG Group's software.
  6. * For conditions of distribution and use, see the accompanying README file.
  7. *
  8. * This file documents the configuration options that are required to
  9. * customize the JPEG software for a particular system.
  10. *
  11. * The actual configuration options for a particular installation are stored
  12. * in jconfig.h. On many machines, jconfig.h can be generated automatically
  13. * or copied from one of the "canned" jconfig files that we supply. But if
  14. * you need to generate a jconfig.h file by hand, this file tells you how.
  15. *
  16. */
  17. // disable the unused arument warning
  18. #pragma warn_unusedarg off
  19. #define jpeg_size_t unsigned long
  20. // apparently, if we use the Mac memmgr instead of ansi or something, we need to define this here.
  21. #undef USE_MAC_MEMMGR
  22. /*
  23. * These symbols indicate the properties of your machine or compiler.
  24. * #define the symbol if yes, #undef it if no.
  25. */
  26. /* Does your compiler support function prototypes?
  27. * (If not, you also need to use ansi2knr, see install.doc)
  28. */
  29. #define HAVE_PROTOTYPES
  30. /* Does your compiler support the declaration "unsigned char" ?
  31. * How about "unsigned short" ?
  32. */
  33. #define HAVE_UNSIGNED_CHAR
  34. #define HAVE_UNSIGNED_SHORT
  35. /* Define "void" as "char" if your compiler doesn't know about type void.
  36. * NOTE: be sure to define void such that "void *" represents the most general
  37. * pointer type, e.g., that returned by malloc().
  38. */
  39. /* #define void char */
  40. /* Define "const" as empty if your compiler doesn't know the "const" keyword.
  41. */
  42. /* #define const */
  43. /* Define this if an ordinary "char" type is unsigned.
  44. * If you're not sure, leaving it undefined will work at some cost in speed.
  45. * If you defined HAVE_UNSIGNED_CHAR then the speed difference is minimal.
  46. */
  47. #undef CHAR_IS_UNSIGNED
  48. /* Define this if your system has an ANSI-conforming <stddef.h> file.
  49. */
  50. #define HAVE_STDDEF_H
  51. /* Define this if your system has an ANSI-conforming <stdlib.h> file.
  52. */
  53. #define HAVE_STDLIB_H
  54. /* Define this if your system does not have an ANSI/SysV <string.h>,
  55. * but does have a BSD-style <strings.h>.
  56. */
  57. #undef NEED_BSD_STRINGS
  58. /* Define this if your system does not provide typedef size_t in any of the
  59. * ANSI-standard places (stddef.h, stdlib.h, or stdio.h), but places it in
  60. * <sys/types.h> instead.
  61. */
  62. #undef NEED_SYS_TYPES_H
  63. /* For 80x86 machines, you need to define NEED_FAR_POINTERS,
  64. * unless you are using a large-data memory model or 80386 flat-memory mode.
  65. * On less brain-damaged CPUs this symbol must not be defined.
  66. * (Defining this symbol causes large data structures to be referenced through
  67. * "far" pointers and to be allocated with a special version of malloc.)
  68. */
  69. #undef NEED_FAR_POINTERS
  70. /* Define this if your linker needs global names to be unique in less
  71. * than the first 15 characters.
  72. */
  73. #undef NEED_SHORT_EXTERNAL_NAMES
  74. /* Although a real ANSI C compiler can deal perfectly well with pointers to
  75. * unspecified structures (see "incomplete types" in the spec), a few pre-ANSI
  76. * and pseudo-ANSI compilers get confused. To keep one of these bozos happy,
  77. * define INCOMPLETE_TYPES_BROKEN. This is not recommended unless you
  78. * actually get "missing structure definition" warnings or errors while
  79. * compiling the JPEG code.
  80. */
  81. #undef INCOMPLETE_TYPES_BROKEN
  82. /*
  83. * The following options affect code selection within the JPEG library,
  84. * but they don't need to be visible to applications using the library.
  85. * To minimize application namespace pollution, the symbols won't be
  86. * defined unless JPEG_INTERNALS has been defined.
  87. */
  88. #ifdef JPEG_INTERNALS
  89. /* Define this if your compiler implements ">>" on signed values as a logical
  90. * (unsigned) shift; leave it undefined if ">>" is a signed (arithmetic) shift,
  91. * which is the normal and rational definition.
  92. */
  93. #undef RIGHT_SHIFT_IS_UNSIGNED
  94. #endif /* JPEG_INTERNALS */
  95. /*
  96. * The remaining options do not affect the JPEG library proper,
  97. * but only the sample applications cjpeg/djpeg (see cjpeg.c, djpeg.c).
  98. * Other applications can ignore these.
  99. */
  100. #ifdef JPEG_CJPEG_DJPEG
  101. /* These defines indicate which image (non-JPEG) file formats are allowed. */
  102. #undef BMP_SUPPORTED /* BMP image file format */
  103. #undef GIF_SUPPORTED /* GIF image file format */
  104. #undef PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */
  105. #undef RLE_SUPPORTED /* Utah RLE image file format */
  106. #undef TARGA_SUPPORTED /* Targa image file format */
  107. /* Define this if you want to name both input and output files on the command
  108. * line, rather than using stdout and optionally stdin. You MUST do this if
  109. * your system can't cope with binary I/O to stdin/stdout. See comments at
  110. * head of cjpeg.c or djpeg.c.
  111. */
  112. #undef TWO_FILE_COMMANDLINE
  113. /* Define this if your system needs explicit cleanup of temporary files.
  114. * This is crucial under MS-DOS, where the temporary "files" may be areas
  115. * of extended memory; on most other systems it's not as important.
  116. */
  117. #undef NEED_SIGNAL_CATCHER
  118. /* By default, we open image files with fopen(...,"rb") or fopen(...,"wb").
  119. * This is necessary on systems that distinguish text files from binary files,
  120. * and is harmless on most systems that don't. If you have one of the rare
  121. * systems that complains about the "b" spec, define this symbol.
  122. */
  123. #undef DONT_USE_B_MODE
  124. /* Define this if you want percent-done progress reports from cjpeg/djpeg.
  125. */
  126. #undef PROGRESS_REPORT
  127. #endif /* JPEG_CJPEG_DJPEG */