Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. /*
  2.     jbig2dec
  3.  
  4.     Copyright (C) 2003 Artifex Software, Inc.
  5.  
  6.     This software is distributed under license and may not
  7.     be copied, modified or distributed except as expressly
  8.     authorized under the terms of the license contained in
  9.     the file LICENSE in this distribution.
  10.  
  11.     For further licensing information refer to http://artifex.com/ or
  12.     contact Artifex Software, Inc., 7 Mt. Lassen Drive - Suite A-134,
  13.     San Rafael, CA  94903, U.S.A., +1(415)492-9861.
  14. */
  15.  
  16. /*
  17.    indirection layer for build and platform-specific definitions
  18.  
  19.    in general, this header should ensure that the stdint types are
  20.    available, and that any optional compile flags are defined if
  21.    the build system doesn't pass them directly.
  22. */
  23.  
  24. #ifndef _JBIG2_OS_TYPES_H
  25. #define _JBIG2_OS_TYPES_H
  26.  
  27. #if defined(__CYGWIN__) && !defined(HAVE_STDINT_H)
  28. # include <sys/types.h>
  29. # if defined(OLD_CYGWIN_SYS_TYPES)
  30.   /*
  31.    * Old versions of Cygwin have no stdint.h but define "MS types". Some of
  32.    * them conflict with a standard type emulation provided by config_types.h
  33.    * so we do a fixup here.
  34.    */
  35.    typedef u_int8_t uint8_t;
  36.    typedef u_int16_t uint16_t;
  37.    typedef u_int32_t uint32_t;
  38. #endif
  39. #elif defined(HAVE_CONFIG_H)
  40. # include "config_types.h"
  41. #elif defined(_WIN32) || defined(__WIN32__)
  42. # include "config_win32.h"
  43. #endif
  44.  
  45. #if defined(HAVE_STDINT_H) || defined(__MACOS__)
  46. # include <stdint.h>
  47. #elif defined(__VMS)
  48. # include <inttypes.h>
  49. #endif
  50.  
  51. #endif /* _JBIG2_OS_TYPES_H */
  52.