config.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. /* Version number of package */
  2. #define VERSION "2.5.0"
  3. #ifdef _WIN32
  4. /* protobuf config.h for MSVC. On other platforms, this is generated
  5. * automatically by autoheader / autoconf / configure. */
  6. /* the location of <hash_map> */
  7. #define HASH_MAP_H <hash_map>
  8. /* the namespace of hash_map/hash_set */
  9. // Apparently Microsoft decided to move hash_map *back* to the std namespace
  10. // in MSVC 2010:
  11. // http://blogs.msdn.com/vcblog/archive/2009/05/25/stl-breaking-changes-in-visual-studio-2010-beta-1.aspx
  12. // TODO(kenton): Use unordered_map instead, which is available in MSVC 2010.
  13. #if _MSC_VER < 1310 || _MSC_VER >= 1600
  14. #define HASH_NAMESPACE std
  15. #else
  16. #define HASH_NAMESPACE stdext
  17. #endif
  18. /* the location of <hash_set> */
  19. #define HASH_SET_H <hash_set>
  20. /* define if the compiler has hash_map */
  21. #define HAVE_HASH_MAP 1
  22. /* define if the compiler has hash_set */
  23. #define HAVE_HASH_SET 1
  24. /* define if you want to use zlib. See readme.txt for additional
  25. * requirements. */
  26. // #define HAVE_ZLIB 1
  27. #else
  28. /* config.h. Generated from config.h.in by configure. */
  29. /* config.h.in. Generated from configure.ac by autoheader. */
  30. /* the name of <hash_map> */
  31. #define HASH_MAP_CLASS unordered_map
  32. /* the location of <unordered_map> or <hash_map> */
  33. #define HASH_MAP_H <unordered_map>
  34. /* the namespace of hash_map/hash_set */
  35. #define HASH_NAMESPACE std
  36. /* the name of <hash_set> */
  37. #define HASH_SET_CLASS unordered_set
  38. /* the location of <unordered_set> or <hash_set> */
  39. #define HASH_SET_H <unordered_set>
  40. /* Define to 1 if you have the <dlfcn.h> header file. */
  41. #define HAVE_DLFCN_H 1
  42. /* Define to 1 if you have the <fcntl.h> header file. */
  43. #define HAVE_FCNTL_H 1
  44. /* Define to 1 if you have the `ftruncate' function. */
  45. #define HAVE_FTRUNCATE 1
  46. /* define if the compiler has hash_map */
  47. #define HAVE_HASH_MAP 1
  48. /* define if the compiler has hash_set */
  49. #define HAVE_HASH_SET 1
  50. /* Define to 1 if you have the <inttypes.h> header file. */
  51. #define HAVE_INTTYPES_H 1
  52. /* Define to 1 if you have the <limits.h> header file. */
  53. #define HAVE_LIMITS_H 1
  54. /* Define to 1 if you have the <memory.h> header file. */
  55. #define HAVE_MEMORY_H 1
  56. /* Define to 1 if you have the `memset' function. */
  57. #define HAVE_MEMSET 1
  58. /* Define to 1 if you have the `mkdir' function. */
  59. #define HAVE_MKDIR 1
  60. /* Define if you have POSIX threads libraries and header files. */
  61. #define HAVE_PTHREAD 1
  62. /* Define to 1 if you have the <stdint.h> header file. */
  63. #define HAVE_STDINT_H 1
  64. /* Define to 1 if you have the <stdlib.h> header file. */
  65. #define HAVE_STDLIB_H 1
  66. /* Define to 1 if you have the `strchr' function. */
  67. #define HAVE_STRCHR 1
  68. /* Define to 1 if you have the `strerror' function. */
  69. #define HAVE_STRERROR 1
  70. /* Define to 1 if you have the <strings.h> header file. */
  71. #define HAVE_STRINGS_H 1
  72. /* Define to 1 if you have the <string.h> header file. */
  73. #define HAVE_STRING_H 1
  74. /* Define to 1 if you have the `strtol' function. */
  75. #define HAVE_STRTOL 1
  76. /* Define to 1 if you have the <sys/stat.h> header file. */
  77. #define HAVE_SYS_STAT_H 1
  78. /* Define to 1 if you have the <sys/types.h> header file. */
  79. #define HAVE_SYS_TYPES_H 1
  80. /* Define to 1 if you have the <unistd.h> header file. */
  81. #define HAVE_UNISTD_H 1
  82. /* Enable classes using zlib compression. */
  83. #define HAVE_ZLIB 1
  84. /* Define to the sub-directory in which libtool stores uninstalled libraries.
  85. */
  86. #define LT_OBJDIR ".libs/"
  87. /* Name of package */
  88. #define PACKAGE "protobuf"
  89. /* Define to the address where bug reports for this package should be sent. */
  90. #define PACKAGE_BUGREPORT "protobuf@googlegroups.com"
  91. /* Define to the full name of this package. */
  92. #define PACKAGE_NAME "Protocol Buffers"
  93. /* Define to the full name and version of this package. */
  94. #define PACKAGE_STRING "Protocol Buffers 2.5.0"
  95. /* Define to the one symbol short name of this package. */
  96. #define PACKAGE_TARNAME "protobuf"
  97. /* Define to the home page for this package. */
  98. #define PACKAGE_URL ""
  99. /* Define to the version of this package. */
  100. #define PACKAGE_VERSION "2.5.0"
  101. /* Define to necessary symbol if this constant uses a non-standard name on
  102. your system. */
  103. /* #undef PTHREAD_CREATE_JOINABLE */
  104. /* Define to 1 if you have the ANSI C header files. */
  105. #define STDC_HEADERS 1
  106. /* Enable extensions on AIX 3, Interix. */
  107. #ifndef _ALL_SOURCE
  108. # define _ALL_SOURCE 1
  109. #endif
  110. /* Enable GNU extensions on systems that have them. */
  111. #ifndef _GNU_SOURCE
  112. # define _GNU_SOURCE 1
  113. #endif
  114. /* Enable threading extensions on Solaris. */
  115. #ifndef _POSIX_PTHREAD_SEMANTICS
  116. # define _POSIX_PTHREAD_SEMANTICS 1
  117. #endif
  118. /* Enable extensions on HP NonStop. */
  119. #ifndef _TANDEM_SOURCE
  120. # define _TANDEM_SOURCE 1
  121. #endif
  122. /* Enable general extensions on Solaris. */
  123. #ifndef __EXTENSIONS__
  124. # define __EXTENSIONS__ 1
  125. #endif
  126. /* Define to 1 if on MINIX. */
  127. /* #undef _MINIX */
  128. /* Define to 2 if the system does not provide POSIX.1 features except with
  129. this defined. */
  130. /* #undef _POSIX_1_SOURCE */
  131. /* Define to 1 if you need to in order for `stat' and other things to work. */
  132. /* #undef _POSIX_SOURCE */
  133. #endif