lzoconf.h
changeset 4432 372316ca7924
parent 2548 49c8a096033f
equal deleted inserted replaced
4431:7ecf73508c31 4432:372316ca7924
    51 extern "C" {
    51 extern "C" {
    52 #endif
    52 #endif
    53 
    53 
    54 
    54 
    55 /***********************************************************************
    55 /***********************************************************************
    56 // LZO requires a conforming <limits.h>
    56  * LZO requires a conforming <limits.h>
    57 ************************************************************************/
    57  ***********************************************************************/
    58 
    58 
    59 #if !defined(CHAR_BIT) || (CHAR_BIT != 8)
    59 #if !defined(CHAR_BIT) || (CHAR_BIT != 8)
    60 #  error "invalid CHAR_BIT"
    60 #  error "invalid CHAR_BIT"
    61 #endif
    61 #endif
    62 #if !defined(UCHAR_MAX) || !defined(UINT_MAX) || !defined(ULONG_MAX)
    62 #if !defined(UCHAR_MAX) || !defined(UINT_MAX) || !defined(ULONG_MAX)
    77 #  endif
    77 #  endif
    78 #endif
    78 #endif
    79 
    79 
    80 
    80 
    81 /***********************************************************************
    81 /***********************************************************************
    82 // architecture defines
    82  * architecture defines
    83 ************************************************************************/
    83  ***********************************************************************/
    84 
    84 
    85 #if !defined(__LZO_WIN) && !defined(__LZO_DOS) && !defined(__LZO_OS2)
    85 #if !defined(__LZO_WIN) && !defined(__LZO_DOS) && !defined(__LZO_OS2)
    86 #  if defined(__WINDOWS__) || defined(_WINDOWS) || defined(_Windows)
    86 #  if defined(__WINDOWS__) || defined(_WINDOWS) || defined(_Windows)
    87 #    define __LZO_WIN
    87 #    define __LZO_WIN
    88 #  elif defined(__WIN32__) || defined(_WIN32) || defined(WIN32)
    88 #  elif defined(__WIN32__) || defined(_WIN32) || defined(WIN32)
   144 #  endif
   144 #  endif
   145 #endif
   145 #endif
   146 
   146 
   147 
   147 
   148 /***********************************************************************
   148 /***********************************************************************
   149 // integral and pointer types
   149  * integral and pointer types
   150 ************************************************************************/
   150  ***********************************************************************/
   151 
   151 
   152 /* Integral types with 32 bits or more */
   152 /* Integral types with 32 bits or more */
   153 #if !defined(LZO_UINT32_MAX)
   153 #if !defined(LZO_UINT32_MAX)
   154 #  if (UINT_MAX >= LZO_0xffffffffL)
   154 #  if (UINT_MAX >= LZO_0xffffffffL)
   155      typedef unsigned int       lzo_uint32;
   155      typedef unsigned int       lzo_uint32;
   189 
   189 
   190 typedef int lzo_bool;
   190 typedef int lzo_bool;
   191 
   191 
   192 
   192 
   193 /***********************************************************************
   193 /***********************************************************************
   194 // memory models
   194  * memory models
   195 ************************************************************************/
   195  ***********************************************************************/
   196 
   196 
   197 /* Memory model for the public code segment. */
   197 /* Memory model for the public code segment. */
   198 #if !defined(__LZO_CMODEL)
   198 #if !defined(__LZO_CMODEL)
   199 #  if defined(__LZO_DOS16) || defined(__LZO_WIN16)
   199 #  if defined(__LZO_DOS16) || defined(__LZO_WIN16)
   200 #    define __LZO_CMODEL        __far
   200 #    define __LZO_CMODEL        __far
   248 #  define lzo_sizeof_dict_t     sizeof(lzo_bytep)
   248 #  define lzo_sizeof_dict_t     sizeof(lzo_bytep)
   249 #endif
   249 #endif
   250 
   250 
   251 
   251 
   252 /***********************************************************************
   252 /***********************************************************************
   253 // calling conventions and function types
   253  * calling conventions and function types
   254 ************************************************************************/
   254  ***********************************************************************/
   255 
   255 
   256 /* linkage */
   256 /* linkage */
   257 #if !defined(__LZO_EXTERN_C)
   257 #if !defined(__LZO_EXTERN_C)
   258 #  ifdef __cplusplus
   258 #  ifdef __cplusplus
   259 #    define __LZO_EXTERN_C      extern "C"
   259 #    define __LZO_EXTERN_C      extern "C"
   330 /* a progress indicator callback function */
   330 /* a progress indicator callback function */
   331 typedef void (__LZO_ENTRY *lzo_progress_callback_t) (lzo_uint, lzo_uint);
   331 typedef void (__LZO_ENTRY *lzo_progress_callback_t) (lzo_uint, lzo_uint);
   332 
   332 
   333 
   333 
   334 /***********************************************************************
   334 /***********************************************************************
   335 // export information
   335  * export information
   336 ************************************************************************/
   336  ***********************************************************************/
   337 
   337 
   338 /* DLL export information */
   338 /* DLL export information */
   339 #if !defined(__LZO_EXPORT1)
   339 #if !defined(__LZO_EXPORT1)
   340 #  define __LZO_EXPORT1
   340 #  define __LZO_EXPORT1
   341 #endif
   341 #endif
   374 #  define LZO_EXTERN_VAR(_type)         extern LZO_PUBLIC_VAR(_type)
   374 #  define LZO_EXTERN_VAR(_type)         extern LZO_PUBLIC_VAR(_type)
   375 #endif
   375 #endif
   376 
   376 
   377 
   377 
   378 /***********************************************************************
   378 /***********************************************************************
   379 // error codes and prototypes
   379  * error codes and prototypes
   380 ************************************************************************/
   380  ***********************************************************************/
   381 
   381 
   382 /* Error codes for the compression/decompression functions. Negative
   382 /* Error codes for the compression/decompression functions. Negative
   383  * values are errors, positive values will be used for special but
   383  * values are errors, positive values will be used for special but
   384  * normal events.
   384  * normal events.
   385  */
   385  */