zipconf.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. #ifndef _HAD_ZIPCONF_H
  2. #define _HAD_ZIPCONF_H
  3. /*
  4. zipconf.h -- platform specific include file
  5. This file was generated automatically by CMake
  6. based on ../cmake-zipconf.h.in.
  7. */
  8. #define LIBZIP_VERSION "0.11.2"
  9. /* #undef HAVE_INTTYPES_H_LIBZIP */
  10. #if defined(_WIN32)
  11. # if _MSC_VER > 1500
  12. # define HAVE_STDINT_H_LIBZIP
  13. # else
  14. # include "win32/php_stdint.h"
  15. # endif
  16. #else
  17. # include <inttypes.h>
  18. #endif
  19. #define HAVE_SYS_TYPES_H_LIBZIP
  20. #define HAVE___INT8_LIBZIP
  21. #define HAVE_INT8_T_LIBZIP
  22. #define HAVE_UINT8_T_LIBZIP
  23. #define HAVE___INT16_LIBZIP
  24. #define HAVE_INT16_T_LIBZIP
  25. #define HAVE_UINT16_T_LIBZIP
  26. #define HAVE___INT32_LIBZIP
  27. #define HAVE_INT32_T_LIBZIP
  28. #define HAVE_UINT32_T_LIBZIP
  29. #define HAVE___INT64_LIBZIP
  30. #define HAVE_INT64_T_LIBZIP
  31. #define HAVE_UINT64_T_LIBZIP
  32. #define SHORT_LIBZIP 2
  33. #define INT_LIBZIP 4
  34. #define LONG_LIBZIP 4
  35. #define LONG_LONG_LIBZIP 8
  36. #if defined(HAVE_STDINT_H_LIBZIP)
  37. #include <stdint.h>
  38. #elif defined(HAVE_INTTYPES_H_LIBZIP)
  39. #include <inttypes.h>
  40. #elif defined(HAVE_SYS_TYPES_H_LIBZIP)
  41. #include <sys/types.h>
  42. #endif
  43. #if defined(HAVE_INT8_T_LIBZIP)
  44. typedef int8_t zip_int8_t;
  45. #elif defined(HAVE___INT8_LIBZIP)
  46. typedef __int8 zip_int8_t;
  47. #else
  48. typedef signed char zip_int8_t;
  49. #endif
  50. #if defined(HAVE_UINT8_T_LIBZIP)
  51. typedef uint8_t zip_uint8_t;
  52. #elif defined(HAVE___INT8_LIBZIP)
  53. typedef unsigned __int8 zip_uint8_t;
  54. #else
  55. typedef unsigned char zip_uint8_t;
  56. #endif
  57. #if defined(HAVE_INT16_T_LIBZIP)
  58. typedef int16_t zip_int16_t;
  59. #elif defined(HAVE___INT16_LIBZIP)
  60. typedef __int16 zip_int16_t;
  61. #elif defined(SHORT_LIBZIP) && SHORT_LIBZIP == 2
  62. typedef signed short zip_int16_t;
  63. #endif
  64. #if defined(HAVE_UINT16_T_LIBZIP)
  65. typedef uint16_t zip_uint16_t;
  66. #elif defined(HAVE___INT16_LIBZIP)
  67. typedef unsigned __int16 zip_uint16_t;
  68. #elif defined(SHORT_LIBZIP) && SHORT_LIBZIP == 2
  69. typedef unsigned short zip_uint16_t;
  70. #endif
  71. #if defined(HAVE_INT32_T_LIBZIP)
  72. typedef int32_t zip_int32_t;
  73. #elif defined(HAVE___INT32_LIBZIP)
  74. typedef __int32 zip_int32_t;
  75. #elif defined(INT_LIBZIP) && INT_LIBZIP == 4
  76. typedef signed int zip_int32_t;
  77. #elif defined(LONG_LIBZIP) && LONG_LIBZIP == 4
  78. typedef signed long zip_int32_t;
  79. #endif
  80. #if defined(HAVE_UINT32_T_LIBZIP)
  81. typedef uint32_t zip_uint32_t;
  82. #elif defined(HAVE___INT32_LIBZIP)
  83. typedef unsigned __int32 zip_uint32_t;
  84. #elif defined(INT_LIBZIP) && INT_LIBZIP == 4
  85. typedef unsigned int zip_uint32_t;
  86. #elif defined(LONG_LIBZIP) && LONG_LIBZIP == 4
  87. typedef unsigned long zip_uint32_t;
  88. #endif
  89. #if defined(HAVE_INT64_T_LIBZIP)
  90. typedef int64_t zip_int64_t;
  91. #elif defined(HAVE___INT64_LIBZIP)
  92. typedef __int64 zip_int64_t;
  93. #elif defined(LONG_LIBZIP) && LONG_LIBZIP == 8
  94. typedef signed long zip_int64_t;
  95. #elif defined(LONG_LONG_LIBZIP) && LONG_LONG_LIBZIP == 8
  96. typedef signed long long zip_int64_t;
  97. #endif
  98. #if defined(HAVE_UINT64_T_LIBZIP)
  99. typedef uint64_t zip_uint64_t;
  100. #elif defined(HAVE___INT64_LIBZIP)
  101. typedef unsigned __int64 zip_uint64_t;
  102. #elif defined(LONG_LIBZIP) && LONG_LONG_LIBZIP == 8
  103. typedef unsigned long zip_uint64_t;
  104. #elif defined(LONG_LONG_LIBZIP) && LONG_LONG_LIBZIP == 8
  105. typedef unsigned long long zip_uint64_t;
  106. #endif
  107. #define ZIP_INT8_MIN -0x80
  108. #define ZIP_INT8_MAX 0x7f
  109. #define ZIP_UINT8_MAX 0xff
  110. #define ZIP_INT16_MIN -0x8000
  111. #define ZIP_INT16_MAX 0x7fff
  112. #define ZIP_UINT16_MAX 0xffff
  113. #define ZIP_INT32_MIN -0x80000000L
  114. #define ZIP_INT32_MAX 0x7fffffffL
  115. #define ZIP_UINT32_MAX 0xffffffffLU
  116. #define ZIP_INT64_MIN -0x8000000000000000LL
  117. #define ZIP_INT64_MAX 0x7fffffffffffffffLL
  118. #define ZIP_UINT64_MAX 0xffffffffffffffffULL
  119. #endif /* zipconf.h */