home *** CD-ROM | disk | FTP | other *** search
/ PC World Plus! (NZ) 2001 June / HDC50.iso / Info / Extras / Jpeg / SRC / JCONFIG.H < prev    next >
C/C++ Source or Header  |  1999-08-11  |  2KB  |  52 lines

  1. /* jconfig.bcc --- jconfig.h for Borland C (Turbo C) on MS-DOS or OS/2. */
  2. /* see jconfig.doc for explanations */
  3.  
  4. #define WindowsRGB   //!! Required for Delphi!  Deadly to cjpeg/djpeg!
  5. #define HAVE_PROTOTYPES
  6. #define HAVE_UNSIGNED_CHAR
  7. #define HAVE_UNSIGNED_SHORT
  8. /* #define void char */
  9. /* #define const */
  10. #undef CHAR_IS_UNSIGNED
  11. #define HAVE_STDDEF_H
  12. #define HAVE_STDLIB_H
  13. #undef NEED_BSD_STRINGS
  14. #undef NEED_SYS_TYPES_H
  15. #ifdef __MSDOS__
  16. #define NEED_FAR_POINTERS    /* for small or medium memory model */
  17. #endif
  18. #undef NEED_SHORT_EXTERNAL_NAMES
  19. #undef INCOMPLETE_TYPES_BROKEN    /* this assumes you have -w-stu in CFLAGS */
  20. #define NO_GETENV     /* disable use of environment variables (and scanf) */
  21. #define MACRO_JUTILS  // reduce some utility routines to macros
  22.  
  23. #ifdef JPEG_INTERNALS
  24.  
  25. #undef RIGHT_SHIFT_IS_UNSIGNED
  26.  
  27. #ifdef __MSDOS__
  28. #define USE_MSDOS_MEMMGR    /* Define this if you use jmemdos.c */
  29. #define MAX_ALLOC_CHUNK 65520L    /* Maximum request to malloc() */
  30. #define USE_FMEM        /* Borland has _fmemcpy() and _fmemset() */
  31. #endif
  32.  
  33. #endif /* JPEG_INTERNALS */
  34.  
  35. #ifdef JPEG_CJPEG_DJPEG
  36.  
  37. #define BMP_SUPPORTED        /* BMP image file format */
  38. #define GIF_SUPPORTED        /* GIF image file format */
  39. #define PPM_SUPPORTED        /* PBMPLUS PPM/PGM image file format */
  40. #undef RLE_SUPPORTED        /* Utah RLE image file format */
  41. #define TARGA_SUPPORTED        /* Targa image file format */
  42.  
  43. #define TWO_FILE_COMMANDLINE
  44. #define USE_SETMODE        /* Borland has setmode() */
  45. #ifdef __MSDOS__
  46. #define NEED_SIGNAL_CATCHER    /* Define this if you use jmemdos.c */
  47. #endif
  48. #undef DONT_USE_B_MODE
  49. #undef PROGRESS_REPORT        /* optional */
  50.  
  51. #endif /* JPEG_CJPEG_DJPEG */
  52.