config-linux.h 45 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294
  1. /* config.h. Generated from config.h.in by configure. */
  2. /* config.h.in. Generated from configure.ac by autoheader. */
  3. /* Define to the number of bits in type 'ptrdiff_t'. */
  4. /* #undef BITSIZEOF_PTRDIFF_T */
  5. /* Define to the number of bits in type 'sig_atomic_t'. */
  6. /* #undef BITSIZEOF_SIG_ATOMIC_T */
  7. /* Define to the number of bits in type 'size_t'. */
  8. /* #undef BITSIZEOF_SIZE_T */
  9. /* Define to the number of bits in type 'wchar_t'. */
  10. /* #undef BITSIZEOF_WCHAR_T */
  11. /* Define to the number of bits in type 'wint_t'. */
  12. /* #undef BITSIZEOF_WINT_T */
  13. /* Define if mono is the preferred C# implementation. */
  14. /* #undef CSHARP_CHOICE_MONO */
  15. /* Define to 1 if using 'alloca.c'. */
  16. /* #undef C_ALLOCA */
  17. /* Define to 1 if // is a file system root distinct from /. */
  18. /* #undef DOUBLE_SLASH_IS_DISTINCT_ROOT */
  19. /* Define to 1 if translation of program messages to the user's native
  20. language is requested. */
  21. #define ENABLE_NLS 1
  22. /* Define this to 1 if F_DUPFD behavior does not match POSIX */
  23. /* #undef FCNTL_DUPFD_BUGGY */
  24. /* Define to a C preprocessor expression that evaluates to 1 or 0, depending
  25. whether the gnulib module fscanf shall be considered present. */
  26. #define GNULIB_FSCANF 1
  27. /* Define to a C preprocessor expression that evaluates to 1 or 0, depending
  28. whether the gnulib module msvc-nothrow shall be considered present. */
  29. #define GNULIB_MSVC_NOTHROW 1
  30. /* Disable VLA usage in gettext.h. */
  31. #define GNULIB_NO_VLA 1
  32. /* Define to 1 if printf and friends should be labeled with attribute
  33. "__gnu_printf__" instead of "__printf__" */
  34. /* #undef GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU */
  35. /* Define to a C preprocessor expression that evaluates to 1 or 0, depending
  36. whether the gnulib module scanf shall be considered present. */
  37. #define GNULIB_SCANF 1
  38. /* Define to a C preprocessor expression that evaluates to 1 or 0, depending
  39. whether the gnulib module strerror shall be considered present. */
  40. #define GNULIB_STRERROR 1
  41. /* Define to 1 when the gnulib module cloexec should be tested. */
  42. #define GNULIB_TEST_CLOEXEC 1
  43. /* Define to 1 when the gnulib module close should be tested. */
  44. #define GNULIB_TEST_CLOSE 1
  45. /* Define to 1 when the gnulib module dup2 should be tested. */
  46. #define GNULIB_TEST_DUP2 1
  47. /* Define to 1 when the gnulib module fcntl should be tested. */
  48. #define GNULIB_TEST_FCNTL 1
  49. /* Define to 1 when the gnulib module fgetc should be tested. */
  50. #define GNULIB_TEST_FGETC 1
  51. /* Define to 1 when the gnulib module fgets should be tested. */
  52. #define GNULIB_TEST_FGETS 1
  53. /* Define to 1 when the gnulib module fprintf should be tested. */
  54. #define GNULIB_TEST_FPRINTF 1
  55. /* Define to 1 when the gnulib module fputc should be tested. */
  56. #define GNULIB_TEST_FPUTC 1
  57. /* Define to 1 when the gnulib module fputs should be tested. */
  58. #define GNULIB_TEST_FPUTS 1
  59. /* Define to 1 when the gnulib module fread should be tested. */
  60. #define GNULIB_TEST_FREAD 1
  61. /* Define to 1 when the gnulib module free-posix should be tested. */
  62. #define GNULIB_TEST_FREE_POSIX 1
  63. /* Define to 1 when the gnulib module fscanf should be tested. */
  64. #define GNULIB_TEST_FSCANF 1
  65. /* Define to 1 when the gnulib module fstat should be tested. */
  66. #define GNULIB_TEST_FSTAT 1
  67. /* Define to 1 when the gnulib module fwrite should be tested. */
  68. #define GNULIB_TEST_FWRITE 1
  69. /* Define to 1 when the gnulib module getc should be tested. */
  70. #define GNULIB_TEST_GETC 1
  71. /* Define to 1 when the gnulib module getchar should be tested. */
  72. #define GNULIB_TEST_GETCHAR 1
  73. /* Define to 1 when the gnulib module getdelim should be tested. */
  74. #define GNULIB_TEST_GETDELIM 1
  75. /* Define to 1 when the gnulib module getdtablesize should be tested. */
  76. #define GNULIB_TEST_GETDTABLESIZE 1
  77. /* Define to 1 when the gnulib module getline should be tested. */
  78. #define GNULIB_TEST_GETLINE 1
  79. /* Define to 1 when the gnulib module getopt-posix should be tested. */
  80. #define GNULIB_TEST_GETOPT_POSIX 1
  81. /* Define to 1 when the gnulib module open should be tested. */
  82. #define GNULIB_TEST_OPEN 1
  83. /* Define to 1 when the gnulib module printf should be tested. */
  84. #define GNULIB_TEST_PRINTF 1
  85. /* Define to 1 when the gnulib module putc should be tested. */
  86. #define GNULIB_TEST_PUTC 1
  87. /* Define to 1 when the gnulib module putchar should be tested. */
  88. #define GNULIB_TEST_PUTCHAR 1
  89. /* Define to 1 when the gnulib module puts should be tested. */
  90. #define GNULIB_TEST_PUTS 1
  91. /* Define to 1 when the gnulib module scanf should be tested. */
  92. #define GNULIB_TEST_SCANF 1
  93. /* Define to 1 when the gnulib module stat should be tested. */
  94. #define GNULIB_TEST_STAT 1
  95. /* Define to 1 when the gnulib module strerror should be tested. */
  96. #define GNULIB_TEST_STRERROR 1
  97. /* Define to 1 when the gnulib module strverscmp should be tested. */
  98. #define GNULIB_TEST_STRVERSCMP 1
  99. /* Define to 1 when the gnulib module vfprintf should be tested. */
  100. #define GNULIB_TEST_VFPRINTF 1
  101. /* Define to 1 when the gnulib module vprintf should be tested. */
  102. #define GNULIB_TEST_VPRINTF 1
  103. /* Define to a C preprocessor expression that evaluates to 1 or 0, depending
  104. whether the gnulib module unistr/u8-mbtoucr shall be considered present. */
  105. #define GNULIB_UNISTR_U8_MBTOUCR 1
  106. /* Define to a C preprocessor expression that evaluates to 1 or 0, depending
  107. whether the gnulib module unistr/u8-uctomb shall be considered present. */
  108. #define GNULIB_UNISTR_U8_UCTOMB 1
  109. /* Define to 1 if you have 'alloca' after including <alloca.h>, a header that
  110. may be supplied by this distribution. */
  111. #define HAVE_ALLOCA 1
  112. /* Define to 1 if <alloca.h> works. */
  113. #define HAVE_ALLOCA_H 1
  114. /* Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the
  115. CoreFoundation framework. */
  116. /* #undef HAVE_CFLOCALECOPYCURRENT */
  117. /* Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in
  118. the CoreFoundation framework. */
  119. /* #undef HAVE_CFPREFERENCESCOPYAPPVALUE */
  120. /* Define to 1 if you have the <crtdefs.h> header file. */
  121. /* #undef HAVE_CRTDEFS_H */
  122. /* Define to 1 if C supports variable-length arrays. */
  123. #define HAVE_C_VARARRAYS 1
  124. /* Define if the GNU dcgettext() function is already present or preinstalled.
  125. */
  126. #define HAVE_DCGETTEXT 1
  127. /* Define to 1 if you have the declaration of `ecvt', and to 0 if you don't.
  128. */
  129. #define HAVE_DECL_ECVT 1
  130. /* Define to 1 if you have the declaration of `execvpe', and to 0 if you
  131. don't. */
  132. #define HAVE_DECL_EXECVPE 1
  133. /* Define to 1 if you have the declaration of `fcloseall', and to 0 if you
  134. don't. */
  135. #define HAVE_DECL_FCLOSEALL 1
  136. /* Define to 1 if you have the declaration of `fcvt', and to 0 if you don't.
  137. */
  138. #define HAVE_DECL_FCVT 1
  139. /* Define to 1 if you have the declaration of `gcvt', and to 0 if you don't.
  140. */
  141. #define HAVE_DECL_GCVT 1
  142. /* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you
  143. don't. */
  144. /* #undef HAVE_DECL_GETC_UNLOCKED */
  145. /* Define to 1 if you have the declaration of `getdelim', and to 0 if you
  146. don't. */
  147. #define HAVE_DECL_GETDELIM 1
  148. /* Define to 1 if you have the declaration of `getdtablesize', and to 0 if you
  149. don't. */
  150. #define HAVE_DECL_GETDTABLESIZE 1
  151. /* Define to 1 if you have the declaration of `getline', and to 0 if you
  152. don't. */
  153. #define HAVE_DECL_GETLINE 1
  154. /* Define to 1 if you have the declaration of `program_invocation_name', and
  155. to 0 if you don't. */
  156. #define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
  157. /* Define to 1 if you have the declaration of `program_invocation_short_name',
  158. and to 0 if you don't. */
  159. #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
  160. /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
  161. don't. */
  162. #define HAVE_DECL_STRERROR_R 1
  163. /* Define to 1 if you have the declaration of `wcsdup', and to 0 if you don't.
  164. */
  165. #define HAVE_DECL_WCSDUP 1
  166. /* Define to 1 if you have the declaration of `__argv', and to 0 if you don't.
  167. */
  168. #define HAVE_DECL___ARGV 0
  169. /* Define to 1 if you have the <dlfcn.h> header file. */
  170. #define HAVE_DLFCN_H 1
  171. /* Define to 1 if you have the `fcntl' function. */
  172. #define HAVE_FCNTL 1
  173. /* Define to 1 if you have the <features.h> header file. */
  174. #define HAVE_FEATURES_H 1
  175. /* Define to 1 if you have the `flockfile' function. */
  176. /* #undef HAVE_FLOCKFILE */
  177. /* Define if the 'free' function is guaranteed to preserve errno. */
  178. #define HAVE_FREE_POSIX 1
  179. /* Define to 1 if you have the `funlockfile' function. */
  180. /* #undef HAVE_FUNLOCKFILE */
  181. /* Define to 1 if you have the `getdelim' function. */
  182. #define HAVE_GETDELIM 1
  183. /* Define to 1 if you have the `getdtablesize' function. */
  184. #define HAVE_GETDTABLESIZE 1
  185. /* Define to 1 if you have the `getexecname' function. */
  186. /* #undef HAVE_GETEXECNAME */
  187. /* Define to 1 if you have the <getopt.h> header file. */
  188. #define HAVE_GETOPT_H 1
  189. /* Define to 1 if you have the `getopt_long_only' function. */
  190. #define HAVE_GETOPT_LONG_ONLY 1
  191. /* Define to 1 if you have the `getprogname' function. */
  192. /* #undef HAVE_GETPROGNAME */
  193. /* Define if the GNU gettext() function is already present or preinstalled. */
  194. #define HAVE_GETTEXT 1
  195. /* Define if you have the iconv() function and it works. */
  196. #define HAVE_ICONV 1
  197. /* Define to 1 if you have the <iconv.h> header file. */
  198. #define HAVE_ICONV_H 1
  199. /* Define to 1 if the compiler supports one of the keywords 'inline',
  200. '__inline__', '__inline' and effectively inlines functions marked as such.
  201. */
  202. #define HAVE_INLINE 1
  203. /* Define to 1 if you have the <inttypes.h> header file. */
  204. #define HAVE_INTTYPES_H 1
  205. /* Define if you have <langinfo.h> and nl_langinfo(CODESET). */
  206. #define HAVE_LANGINFO_CODESET 1
  207. /* Define to 1 if you have the <langinfo.h> header file. */
  208. #define HAVE_LANGINFO_H 1
  209. /* Define to 1 if you have the <limits.h> header file. */
  210. #define HAVE_LIMITS_H 1
  211. /* Define to 1 if the system has the type 'long long int'. */
  212. #define HAVE_LONG_LONG_INT 1
  213. /* Define to 1 if you have the `lstat' function. */
  214. #define HAVE_LSTAT 1
  215. /* Define to 1 if you have the <minix/config.h> header file. */
  216. /* #undef HAVE_MINIX_CONFIG_H */
  217. /* Define to 1 on MSVC platforms that have the "invalid parameter handler"
  218. concept. */
  219. /* #undef HAVE_MSVC_INVALID_PARAMETER_HANDLER */
  220. /* Define to 1 if you have the <sdkddkver.h> header file. */
  221. /* #undef HAVE_SDKDDKVER_H */
  222. /* Define to 1 if you have the `setdtablesize' function. */
  223. /* #undef HAVE_SETDTABLESIZE */
  224. /* Define to 1 if 'sig_atomic_t' is a signed integer type. */
  225. /* #undef HAVE_SIGNED_SIG_ATOMIC_T */
  226. /* Define to 1 if 'wchar_t' is a signed integer type. */
  227. /* #undef HAVE_SIGNED_WCHAR_T */
  228. /* Define to 1 if 'wint_t' is a signed integer type. */
  229. /* #undef HAVE_SIGNED_WINT_T */
  230. /* Define to 1 if you have the <stdint.h> header file. */
  231. #define HAVE_STDINT_H 1
  232. /* Define to 1 if you have the <stdio.h> header file. */
  233. #define HAVE_STDIO_H 1
  234. /* Define to 1 if you have the <stdlib.h> header file. */
  235. #define HAVE_STDLIB_H 1
  236. /* Define if you have `strerror_r'. */
  237. #define HAVE_STRERROR_R 1
  238. /* Define to 1 if you have the <strings.h> header file. */
  239. #define HAVE_STRINGS_H 1
  240. /* Define to 1 if you have the <string.h> header file. */
  241. #define HAVE_STRING_H 1
  242. /* Define to 1 if `st_atimensec' is a member of `struct stat'. */
  243. /* #undef HAVE_STRUCT_STAT_ST_ATIMENSEC */
  244. /* Define to 1 if `st_atimespec.tv_nsec' is a member of `struct stat'. */
  245. /* #undef HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC */
  246. /* Define to 1 if `st_atim.st__tim.tv_nsec' is a member of `struct stat'. */
  247. /* #undef HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC */
  248. /* Define to 1 if `st_atim.tv_nsec' is a member of `struct stat'. */
  249. #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
  250. /* Define to 1 if `st_birthtimensec' is a member of `struct stat'. */
  251. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC */
  252. /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */
  253. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */
  254. /* Define to 1 if `st_birthtim.tv_nsec' is a member of `struct stat'. */
  255. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC */
  256. /* Define to 1 if you have the `strverscmp' function. */
  257. #define HAVE_STRVERSCMP 1
  258. /* Define to 1 if you have the `symlink' function. */
  259. #define HAVE_SYMLINK 1
  260. /* Define to 1 if you have the <sys/bitypes.h> header file. */
  261. /* #undef HAVE_SYS_BITYPES_H */
  262. /* Define to 1 if you have the <sys/cdefs.h> header file. */
  263. #define HAVE_SYS_CDEFS_H 1
  264. /* Define to 1 if you have the <sys/inttypes.h> header file. */
  265. /* #undef HAVE_SYS_INTTYPES_H */
  266. /* Define to 1 if you have the <sys/param.h> header file. */
  267. #define HAVE_SYS_PARAM_H 1
  268. /* Define to 1 if you have the <sys/socket.h> header file. */
  269. #define HAVE_SYS_SOCKET_H 1
  270. /* Define to 1 if you have the <sys/stat.h> header file. */
  271. #define HAVE_SYS_STAT_H 1
  272. /* Define to 1 if you have the <sys/time.h> header file. */
  273. #define HAVE_SYS_TIME_H 1
  274. /* Define to 1 if you have the <sys/types.h> header file. */
  275. #define HAVE_SYS_TYPES_H 1
  276. /* Define to 1 if you have the <unistd.h> header file. */
  277. #define HAVE_UNISTD_H 1
  278. /* Define to 1 if the system has the type 'unsigned long long int'. */
  279. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  280. /* Define if you have a global __progname variable */
  281. /* #undef HAVE_VAR___PROGNAME */
  282. /* Define to 1 or 0, depending whether the compiler supports simple visibility
  283. declarations. */
  284. #define HAVE_VISIBILITY 1
  285. /* Define to 1 if you have the <wchar.h> header file. */
  286. #define HAVE_WCHAR_H 1
  287. /* Define if you have the 'wchar_t' type. */
  288. #define HAVE_WCHAR_T 1
  289. /* Define to 1 if you have the <winsock2.h> header file. */
  290. /* #undef HAVE_WINSOCK2_H */
  291. /* Define if you have the 'wint_t' type. */
  292. #define HAVE_WINT_T 1
  293. /* Define to 1 if O_NOATIME works. */
  294. #define HAVE_WORKING_O_NOATIME 1
  295. /* Define to 1 if O_NOFOLLOW works. */
  296. #define HAVE_WORKING_O_NOFOLLOW 1
  297. /* Define to 1 if the system has the type `_Bool'. */
  298. #define HAVE__BOOL 1
  299. /* Define to 1 if you have the `_set_invalid_parameter_handler' function. */
  300. /* #undef HAVE__SET_INVALID_PARAMETER_HANDLER */
  301. /* Define to 1 if ctype.h defines __header_inline. */
  302. /* #undef HAVE___HEADER_INLINE */
  303. /* Please see the Gnulib manual for how to use these macros.
  304. Suppress extern inline with HP-UX cc, as it appears to be broken; see
  305. <https://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
  306. Suppress extern inline with Sun C in standards-conformance mode, as it
  307. mishandles inline functions that call each other. E.g., for 'inline void f
  308. (void) { } inline void g (void) { f (); }', c99 incorrectly complains
  309. 'reference to static identifier "f" in extern inline function'.
  310. This bug was observed with Oracle Developer Studio 12.6
  311. (Sun C 5.15 SunOS_sparc 2017/05/30).
  312. Suppress extern inline (with or without __attribute__ ((__gnu_inline__)))
  313. on configurations that mistakenly use 'static inline' to implement
  314. functions or macros in standard C headers like <ctype.h>. For example,
  315. if isdigit is mistakenly implemented via a static inline function,
  316. a program containing an extern inline function that calls isdigit
  317. may not work since the C standard prohibits extern inline functions
  318. from calling static functions (ISO C 99 section 6.7.4.(3).
  319. This bug is known to occur on:
  320. OS X 10.8 and earlier; see:
  321. https://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html
  322. DragonFly; see
  323. http://muscles.dragonflybsd.org/bulk/clang-master-potential/20141111_102002/logs/ah-tty-0.3.12.log
  324. FreeBSD; see:
  325. https://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
  326. OS X 10.9 has a macro __header_inline indicating the bug is fixed for C and
  327. for clang but remains for g++; see <https://trac.macports.org/ticket/41033>.
  328. Assume DragonFly and FreeBSD will be similar.
  329. GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
  330. inline semantics, unless -fgnu89-inline is used. It defines a macro
  331. __GNUC_STDC_INLINE__ to indicate this situation or a macro
  332. __GNUC_GNU_INLINE__ to indicate the opposite situation.
  333. GCC 4.2 with -std=c99 or -std=gnu99 implements the GNU C inline
  334. semantics but warns, unless -fgnu89-inline is used:
  335. warning: C99 inline functions are not supported; using GNU89
  336. warning: to disable this warning use -fgnu89-inline or the gnu_inline function attribute
  337. It defines a macro __GNUC_GNU_INLINE__ to indicate this situation.
  338. */
  339. #if (((defined __APPLE__ && defined __MACH__) \
  340. || defined __DragonFly__ || defined __FreeBSD__) \
  341. && (defined HAVE___HEADER_INLINE \
  342. ? (defined __cplusplus && defined __GNUC_STDC_INLINE__ \
  343. && ! defined __clang__) \
  344. : ((! defined _DONT_USE_CTYPE_INLINE_ \
  345. && (defined __GNUC__ || defined __cplusplus)) \
  346. || (defined _FORTIFY_SOURCE && 0 < _FORTIFY_SOURCE \
  347. && defined __GNUC__ && ! defined __cplusplus))))
  348. # define _GL_EXTERN_INLINE_STDHEADER_BUG
  349. #endif
  350. #if ((__GNUC__ \
  351. ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \
  352. : (199901L <= __STDC_VERSION__ \
  353. && !defined __HP_cc \
  354. && !defined __PGI \
  355. && !(defined __SUNPRO_C && __STDC__))) \
  356. && !defined _GL_EXTERN_INLINE_STDHEADER_BUG)
  357. # define _GL_INLINE inline
  358. # define _GL_EXTERN_INLINE extern inline
  359. # define _GL_EXTERN_INLINE_IN_USE
  360. #elif (2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __STRICT_ANSI__ \
  361. && !defined _GL_EXTERN_INLINE_STDHEADER_BUG)
  362. # if defined __GNUC_GNU_INLINE__ && __GNUC_GNU_INLINE__
  363. /* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */
  364. # define _GL_INLINE extern inline __attribute__ ((__gnu_inline__))
  365. # else
  366. # define _GL_INLINE extern inline
  367. # endif
  368. # define _GL_EXTERN_INLINE extern
  369. # define _GL_EXTERN_INLINE_IN_USE
  370. #else
  371. # define _GL_INLINE _GL_UNUSED static
  372. # define _GL_EXTERN_INLINE _GL_UNUSED static
  373. #endif
  374. /* In GCC 4.6 (inclusive) to 5.1 (exclusive),
  375. suppress bogus "no previous prototype for 'FOO'"
  376. and "no previous declaration for 'FOO'" diagnostics,
  377. when FOO is an inline function in the header; see
  378. <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54113> and
  379. <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63877>. */
  380. #if __GNUC__ == 4 && 6 <= __GNUC_MINOR__
  381. # if defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__
  382. # define _GL_INLINE_HEADER_CONST_PRAGMA
  383. # else
  384. # define _GL_INLINE_HEADER_CONST_PRAGMA \
  385. _Pragma ("GCC diagnostic ignored \"-Wsuggest-attribute=const\"")
  386. # endif
  387. # define _GL_INLINE_HEADER_BEGIN \
  388. _Pragma ("GCC diagnostic push") \
  389. _Pragma ("GCC diagnostic ignored \"-Wmissing-prototypes\"") \
  390. _Pragma ("GCC diagnostic ignored \"-Wmissing-declarations\"") \
  391. _GL_INLINE_HEADER_CONST_PRAGMA
  392. # define _GL_INLINE_HEADER_END \
  393. _Pragma ("GCC diagnostic pop")
  394. #else
  395. # define _GL_INLINE_HEADER_BEGIN
  396. # define _GL_INLINE_HEADER_END
  397. #endif
  398. /* Define to 1 if the compiler supports the keyword '__inline'. */
  399. #define HAVE___INLINE 1
  400. /* Define as const if the declaration of iconv() needs const. */
  401. #define ICONV_CONST
  402. /* Define to a symbolic name denoting the flavor of iconv_open()
  403. implementation. */
  404. /* #undef ICONV_FLAVOR */
  405. /* Define to the sub-directory where libtool stores uninstalled libraries. */
  406. #define LT_OBJDIR ".libs/"
  407. /* If malloc(0) is != NULL, define this to 1. Otherwise define this to 0. */
  408. #define MALLOC_0_IS_NONNULL 1
  409. /* Use GNU style printf and scanf. */
  410. #ifndef __USE_MINGW_ANSI_STDIO
  411. # define __USE_MINGW_ANSI_STDIO 1
  412. #endif
  413. /* Define to 1 if open() fails to recognize a trailing slash. */
  414. /* #undef OPEN_TRAILING_SLASH_BUG */
  415. /* Name of package */
  416. #define PACKAGE "libidn"
  417. /* Define to the address where bug reports for this package should be sent. */
  418. #define PACKAGE_BUGREPORT "help-libidn@gnu.org"
  419. /* Define to the full name of this package. */
  420. #define PACKAGE_NAME "GNU Libidn"
  421. /* String identifying the packager of this software */
  422. /* #undef PACKAGE_PACKAGER */
  423. /* Packager info for bug reports (URL/e-mail/...) */
  424. /* #undef PACKAGE_PACKAGER_BUG_REPORTS */
  425. /* Packager-specific version information */
  426. /* #undef PACKAGE_PACKAGER_VERSION */
  427. /* Define to the full name and version of this package. */
  428. #define PACKAGE_STRING "GNU Libidn 1.41"
  429. /* Define to the one symbol short name of this package. */
  430. #define PACKAGE_TARNAME "libidn"
  431. /* Define to the home page for this package. */
  432. #define PACKAGE_URL "https://www.gnu.org/software/libidn/"
  433. /* Define to the version of this package. */
  434. #define PACKAGE_VERSION "1.41"
  435. /* Define to the type that is the result of default argument promotions of
  436. type mode_t. */
  437. #define PROMOTED_MODE_T mode_t
  438. /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type
  439. 'ptrdiff_t'. */
  440. /* #undef PTRDIFF_T_SUFFIX */
  441. /* Define to 1 if stat needs help when passed a file name with a trailing
  442. slash */
  443. /* #undef REPLACE_FUNC_STAT_FILE */
  444. /* Define to 1 if strerror(0) does not return a message implying success. */
  445. /* #undef REPLACE_STRERROR_0 */
  446. /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type
  447. 'sig_atomic_t'. */
  448. /* #undef SIG_ATOMIC_T_SUFFIX */
  449. /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type
  450. 'size_t'. */
  451. /* #undef SIZE_T_SUFFIX */
  452. /* If using the C implementation of alloca, define if you know the
  453. direction of stack growth for your system; otherwise it will be
  454. automatically deduced at runtime.
  455. STACK_DIRECTION > 0 => grows toward higher addresses
  456. STACK_DIRECTION < 0 => grows toward lower addresses
  457. STACK_DIRECTION = 0 => direction of growth unknown */
  458. /* #undef STACK_DIRECTION */
  459. /* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
  460. /* #undef STAT_MACROS_BROKEN */
  461. /* Define to 1 if all of the C90 standard headers exist (not just the ones
  462. required in a freestanding environment). This macro is provided for
  463. backward compatibility; new code need not use it. */
  464. #define STDC_HEADERS 1
  465. /* Define to 1 if strerror_r returns char *. */
  466. #define STRERROR_R_CHAR_P 1
  467. /* Define to 1 if the type of the st_atim member of a struct stat is struct
  468. timespec. */
  469. #define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1
  470. /* Enable extensions on AIX 3, Interix. */
  471. #ifndef _ALL_SOURCE
  472. # define _ALL_SOURCE 1
  473. #endif
  474. /* Enable general extensions on macOS. */
  475. #ifndef _DARWIN_C_SOURCE
  476. # define _DARWIN_C_SOURCE 1
  477. #endif
  478. /* Enable general extensions on Solaris. */
  479. #ifndef __EXTENSIONS__
  480. # define __EXTENSIONS__ 1
  481. #endif
  482. /* Enable GNU extensions on systems that have them. */
  483. #ifndef _GNU_SOURCE
  484. # define _GNU_SOURCE 1
  485. #endif
  486. /* Enable X/Open compliant socket functions that do not require linking
  487. with -lxnet on HP-UX 11.11. */
  488. #ifndef _HPUX_ALT_XOPEN_SOCKET_API
  489. # define _HPUX_ALT_XOPEN_SOCKET_API 1
  490. #endif
  491. /* Identify the host operating system as Minix.
  492. This macro does not affect the system headers' behavior.
  493. A future release of Autoconf may stop defining this macro. */
  494. #ifndef _MINIX
  495. /* # undef _MINIX */
  496. #endif
  497. /* Enable general extensions on NetBSD.
  498. Enable NetBSD compatibility extensions on Minix. */
  499. #ifndef _NETBSD_SOURCE
  500. # define _NETBSD_SOURCE 1
  501. #endif
  502. /* Enable OpenBSD compatibility extensions on NetBSD.
  503. Oddly enough, this does nothing on OpenBSD. */
  504. #ifndef _OPENBSD_SOURCE
  505. # define _OPENBSD_SOURCE 1
  506. #endif
  507. /* Define to 1 if needed for POSIX-compatible behavior. */
  508. #ifndef _POSIX_SOURCE
  509. /* # undef _POSIX_SOURCE */
  510. #endif
  511. /* Define to 2 if needed for POSIX-compatible behavior. */
  512. #ifndef _POSIX_1_SOURCE
  513. /* # undef _POSIX_1_SOURCE */
  514. #endif
  515. /* Enable POSIX-compatible threading on Solaris. */
  516. #ifndef _POSIX_PTHREAD_SEMANTICS
  517. # define _POSIX_PTHREAD_SEMANTICS 1
  518. #endif
  519. /* Enable extensions specified by ISO/IEC TS 18661-5:2014. */
  520. #ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__
  521. # define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
  522. #endif
  523. /* Enable extensions specified by ISO/IEC TS 18661-1:2014. */
  524. #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
  525. # define __STDC_WANT_IEC_60559_BFP_EXT__ 1
  526. #endif
  527. /* Enable extensions specified by ISO/IEC TS 18661-2:2015. */
  528. #ifndef __STDC_WANT_IEC_60559_DFP_EXT__
  529. # define __STDC_WANT_IEC_60559_DFP_EXT__ 1
  530. #endif
  531. /* Enable extensions specified by ISO/IEC TS 18661-4:2015. */
  532. #ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__
  533. # define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
  534. #endif
  535. /* Enable extensions specified by ISO/IEC TS 18661-3:2015. */
  536. #ifndef __STDC_WANT_IEC_60559_TYPES_EXT__
  537. # define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
  538. #endif
  539. /* Enable extensions specified by ISO/IEC TR 24731-2:2010. */
  540. #ifndef __STDC_WANT_LIB_EXT2__
  541. # define __STDC_WANT_LIB_EXT2__ 1
  542. #endif
  543. /* Enable extensions specified by ISO/IEC 24747:2009. */
  544. #ifndef __STDC_WANT_MATH_SPEC_FUNCS__
  545. # define __STDC_WANT_MATH_SPEC_FUNCS__ 1
  546. #endif
  547. /* Enable extensions on HP NonStop. */
  548. #ifndef _TANDEM_SOURCE
  549. # define _TANDEM_SOURCE 1
  550. #endif
  551. /* Enable X/Open extensions. Define to 500 only if necessary
  552. to make mbstate_t available. */
  553. #ifndef _XOPEN_SOURCE
  554. /* # undef _XOPEN_SOURCE */
  555. #endif
  556. /* Version number of package */
  557. #define VERSION "1.41"
  558. /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type
  559. 'wchar_t'. */
  560. /* #undef WCHAR_T_SUFFIX */
  561. /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type
  562. 'wint_t'. */
  563. /* #undef WINT_T_SUFFIX */
  564. /* Define to 1 if you want TLD code. */
  565. #define WITH_TLD 1
  566. /* Number of bits in a file offset, on hosts where this is settable. */
  567. /* #undef _FILE_OFFSET_BITS */
  568. /* True if the compiler says it groks GNU C version MAJOR.MINOR. */
  569. #if defined __GNUC__ && defined __GNUC_MINOR__
  570. # define _GL_GNUC_PREREQ(major, minor) \
  571. ((major) < __GNUC__ + ((minor) <= __GNUC_MINOR__))
  572. #else
  573. # define _GL_GNUC_PREREQ(major, minor) 0
  574. #endif
  575. /* Define to enable the declarations of ISO C 11 types and functions. */
  576. /* #undef _ISOC11_SOURCE */
  577. /* Define for large files, on AIX-style hosts. */
  578. /* #undef _LARGE_FILES */
  579. /* The _Noreturn keyword of C11. */
  580. #ifndef _Noreturn
  581. # if (defined __cplusplus \
  582. && ((201103 <= __cplusplus && !(__GNUC__ == 4 && __GNUC_MINOR__ == 7)) \
  583. || (defined _MSC_VER && 1900 <= _MSC_VER)) \
  584. && 0)
  585. /* [[noreturn]] is not practically usable, because with it the syntax
  586. extern _Noreturn void func (...);
  587. would not be valid; such a declaration would only be valid with 'extern'
  588. and '_Noreturn' swapped, or without the 'extern' keyword. However, some
  589. AIX system header files and several gnulib header files use precisely
  590. this syntax with 'extern'. */
  591. # define _Noreturn [[noreturn]]
  592. # elif ((!defined __cplusplus || defined __clang__) \
  593. && (201112 <= (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) \
  594. || (!defined __STRICT_ANSI__ \
  595. && (_GL_GNUC_PREREQ (4, 7) \
  596. || (defined __apple_build_version__ \
  597. ? 6000000 <= __apple_build_version__ \
  598. : 3 < __clang_major__ + (5 <= __clang_minor__))))))
  599. /* _Noreturn works as-is. */
  600. # elif _GL_GNUC_PREREQ (2, 8) || defined __clang__ || 0x5110 <= __SUNPRO_C
  601. # define _Noreturn __attribute__ ((__noreturn__))
  602. # elif 1200 <= (defined _MSC_VER ? _MSC_VER : 0)
  603. # define _Noreturn __declspec (noreturn)
  604. # else
  605. # define _Noreturn
  606. # endif
  607. #endif
  608. /* Number of bits in a timestamp, on hosts where this is settable. */
  609. /* #undef _TIME_BITS */
  610. /* For standard stat data types on VMS. */
  611. #define _USE_STD_STAT 1
  612. /* Define to rpl_ if the getopt replacement functions and variables should be
  613. used. */
  614. /* #undef __GETOPT_PREFIX */
  615. /* For 64-bit time_t on 32-bit mingw. */
  616. /* #undef __MINGW_USE_VC2005_COMPAT */
  617. /* Define to 1 if the system <stdint.h> predates C++11. */
  618. /* #undef __STDC_CONSTANT_MACROS */
  619. /* Define to 1 if the system <stdint.h> predates C++11. */
  620. /* #undef __STDC_LIMIT_MACROS */
  621. /* Define to 1 if C does not support variable-length arrays, and if the
  622. compiler does not already define this. */
  623. /* #undef __STDC_NO_VLA__ */
  624. /* The _GL_ASYNC_SAFE marker should be attached to functions that are
  625. signal handlers (for signals other than SIGABRT, SIGPIPE) or can be
  626. invoked from such signal handlers. Such functions have some restrictions:
  627. * All functions that it calls should be marked _GL_ASYNC_SAFE as well,
  628. or should be listed as async-signal-safe in POSIX
  629. <https://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_04>
  630. section 2.4.3. Note that malloc(), sprintf(), and fwrite(), in
  631. particular, are NOT async-signal-safe.
  632. * All memory locations (variables and struct fields) that these functions
  633. access must be marked 'volatile'. This holds for both read and write
  634. accesses. Otherwise the compiler might optimize away stores to and
  635. reads from such locations that occur in the program, depending on its
  636. data flow analysis. For example, when the program contains a loop
  637. that is intended to inspect a variable set from within a signal handler
  638. while (!signal_occurred)
  639. ;
  640. the compiler is allowed to transform this into an endless loop if the
  641. variable 'signal_occurred' is not declared 'volatile'.
  642. Additionally, recall that:
  643. * A signal handler should not modify errno (except if it is a handler
  644. for a fatal signal and ends by raising the same signal again, thus
  645. provoking the termination of the process). If it invokes a function
  646. that may clobber errno, it needs to save and restore the value of
  647. errno. */
  648. #define _GL_ASYNC_SAFE
  649. /* Attributes. */
  650. #if (defined __has_attribute \
  651. && (!defined __clang_minor__ \
  652. || (defined __apple_build_version__ \
  653. ? 6000000 <= __apple_build_version__ \
  654. : 3 < __clang_major__ + (5 <= __clang_minor__))))
  655. # define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__)
  656. #else
  657. # define _GL_HAS_ATTRIBUTE(attr) _GL_ATTR_##attr
  658. # define _GL_ATTR_alloc_size _GL_GNUC_PREREQ (4, 3)
  659. # define _GL_ATTR_always_inline _GL_GNUC_PREREQ (3, 2)
  660. # define _GL_ATTR_artificial _GL_GNUC_PREREQ (4, 3)
  661. # define _GL_ATTR_cold _GL_GNUC_PREREQ (4, 3)
  662. # define _GL_ATTR_const _GL_GNUC_PREREQ (2, 95)
  663. # define _GL_ATTR_deprecated _GL_GNUC_PREREQ (3, 1)
  664. # define _GL_ATTR_diagnose_if 0
  665. # define _GL_ATTR_error _GL_GNUC_PREREQ (4, 3)
  666. # define _GL_ATTR_externally_visible _GL_GNUC_PREREQ (4, 1)
  667. # define _GL_ATTR_fallthrough _GL_GNUC_PREREQ (7, 0)
  668. # define _GL_ATTR_format _GL_GNUC_PREREQ (2, 7)
  669. # define _GL_ATTR_leaf _GL_GNUC_PREREQ (4, 6)
  670. # define _GL_ATTR_malloc _GL_GNUC_PREREQ (3, 0)
  671. # ifdef _ICC
  672. # define _GL_ATTR_may_alias 0
  673. # else
  674. # define _GL_ATTR_may_alias _GL_GNUC_PREREQ (3, 3)
  675. # endif
  676. # define _GL_ATTR_noinline _GL_GNUC_PREREQ (3, 1)
  677. # define _GL_ATTR_nonnull _GL_GNUC_PREREQ (3, 3)
  678. # define _GL_ATTR_nonstring _GL_GNUC_PREREQ (8, 0)
  679. # define _GL_ATTR_nothrow _GL_GNUC_PREREQ (3, 3)
  680. # define _GL_ATTR_packed _GL_GNUC_PREREQ (2, 7)
  681. # define _GL_ATTR_pure _GL_GNUC_PREREQ (2, 96)
  682. # define _GL_ATTR_returns_nonnull _GL_GNUC_PREREQ (4, 9)
  683. # define _GL_ATTR_sentinel _GL_GNUC_PREREQ (4, 0)
  684. # define _GL_ATTR_unused _GL_GNUC_PREREQ (2, 7)
  685. # define _GL_ATTR_warn_unused_result _GL_GNUC_PREREQ (3, 4)
  686. #endif
  687. #ifdef __has_c_attribute
  688. # if ((defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) <= 201710 \
  689. && _GL_GNUC_PREREQ (4, 6))
  690. # pragma GCC diagnostic ignored "-Wpedantic"
  691. # endif
  692. # define _GL_HAS_C_ATTRIBUTE(attr) __has_c_attribute (__##attr##__)
  693. #else
  694. # define _GL_HAS_C_ATTRIBUTE(attr) 0
  695. #endif
  696. /* _GL_ATTRIBUTE_ALLOC_SIZE ((N)) declares that the Nth argument of the function
  697. is the size of the returned memory block.
  698. _GL_ATTRIBUTE_ALLOC_SIZE ((M, N)) declares that the Mth argument multiplied
  699. by the Nth argument of the function is the size of the returned memory block.
  700. */
  701. /* Applies to: function, pointer to function, function types. */
  702. #if _GL_HAS_ATTRIBUTE (alloc_size)
  703. # define _GL_ATTRIBUTE_ALLOC_SIZE(args) __attribute__ ((__alloc_size__ args))
  704. #else
  705. # define _GL_ATTRIBUTE_ALLOC_SIZE(args)
  706. #endif
  707. /* _GL_ATTRIBUTE_ALWAYS_INLINE tells that the compiler should always inline the
  708. function and report an error if it cannot do so. */
  709. /* Applies to: function. */
  710. #if _GL_HAS_ATTRIBUTE (always_inline)
  711. # define _GL_ATTRIBUTE_ALWAYS_INLINE __attribute__ ((__always_inline__))
  712. #else
  713. # define _GL_ATTRIBUTE_ALWAYS_INLINE
  714. #endif
  715. /* _GL_ATTRIBUTE_ARTIFICIAL declares that the function is not important to show
  716. in stack traces when debugging. The compiler should omit the function from
  717. stack traces. */
  718. /* Applies to: function. */
  719. #if _GL_HAS_ATTRIBUTE (artificial)
  720. # define _GL_ATTRIBUTE_ARTIFICIAL __attribute__ ((__artificial__))
  721. #else
  722. # define _GL_ATTRIBUTE_ARTIFICIAL
  723. #endif
  724. /* _GL_ATTRIBUTE_COLD declares that the function is rarely executed. */
  725. /* Applies to: functions. */
  726. /* Avoid __attribute__ ((cold)) on MinGW; see thread starting at
  727. <https://lists.gnu.org/r/emacs-devel/2019-04/msg01152.html>.
  728. Also, Oracle Studio 12.6 requires 'cold' not '__cold__'. */
  729. #if _GL_HAS_ATTRIBUTE (cold) && !defined __MINGW32__
  730. # ifndef __SUNPRO_C
  731. # define _GL_ATTRIBUTE_COLD __attribute__ ((__cold__))
  732. # else
  733. # define _GL_ATTRIBUTE_COLD __attribute__ ((cold))
  734. # endif
  735. #else
  736. # define _GL_ATTRIBUTE_COLD
  737. #endif
  738. /* _GL_ATTRIBUTE_CONST declares that it is OK for a compiler to omit duplicate
  739. calls to the function with the same arguments.
  740. This attribute is safe for a function that neither depends on nor affects
  741. observable state, and always returns exactly once - e.g., does not loop
  742. forever, and does not call longjmp.
  743. (This attribute is stricter than _GL_ATTRIBUTE_PURE.) */
  744. /* Applies to: functions. */
  745. #if _GL_HAS_ATTRIBUTE (const)
  746. # define _GL_ATTRIBUTE_CONST __attribute__ ((__const__))
  747. #else
  748. # define _GL_ATTRIBUTE_CONST
  749. #endif
  750. /* _GL_ATTRIBUTE_DEALLOC (F, I) declares that the function returns pointers
  751. that can be freed by passing them as the Ith argument to the
  752. function F.
  753. _GL_ATTRIBUTE_DEALLOC_FREE declares that the function returns pointers that
  754. can be freed via 'free'; it can be used only after declaring 'free'. */
  755. /* Applies to: functions. Cannot be used on inline functions. */
  756. #if _GL_GNUC_PREREQ (11, 0)
  757. # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i)))
  758. #else
  759. # define _GL_ATTRIBUTE_DEALLOC(f, i)
  760. #endif
  761. /* If gnulib's <string.h> or <wchar.h> has already defined this macro, continue
  762. to use this earlier definition, since <stdlib.h> may not have been included
  763. yet. */
  764. #ifndef _GL_ATTRIBUTE_DEALLOC_FREE
  765. # define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (free, 1)
  766. #endif
  767. /* _GL_ATTRIBUTE_DEPRECATED: Declares that an entity is deprecated.
  768. The compiler may warn if the entity is used. */
  769. /* Applies to:
  770. - function, variable,
  771. - struct, union, struct/union member,
  772. - enumeration, enumeration item,
  773. - typedef,
  774. in C++ also: namespace, class, template specialization. */
  775. #if _GL_HAS_C_ATTRIBUTE (deprecated)
  776. # define _GL_ATTRIBUTE_DEPRECATED [[__deprecated__]]
  777. #elif _GL_HAS_ATTRIBUTE (deprecated)
  778. # define _GL_ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__))
  779. #else
  780. # define _GL_ATTRIBUTE_DEPRECATED
  781. #endif
  782. /* _GL_ATTRIBUTE_ERROR(msg) requests an error if a function is called and
  783. the function call is not optimized away.
  784. _GL_ATTRIBUTE_WARNING(msg) requests a warning if a function is called and
  785. the function call is not optimized away. */
  786. /* Applies to: functions. */
  787. #if _GL_HAS_ATTRIBUTE (error)
  788. # define _GL_ATTRIBUTE_ERROR(msg) __attribute__ ((__error__ (msg)))
  789. # define _GL_ATTRIBUTE_WARNING(msg) __attribute__ ((__warning__ (msg)))
  790. #elif _GL_HAS_ATTRIBUTE (diagnose_if)
  791. # define _GL_ATTRIBUTE_ERROR(msg) __attribute__ ((__diagnose_if__ (1, msg, "error")))
  792. # define _GL_ATTRIBUTE_WARNING(msg) __attribute__ ((__diagnose_if__ (1, msg, "warning")))
  793. #else
  794. # define _GL_ATTRIBUTE_ERROR(msg)
  795. # define _GL_ATTRIBUTE_WARNING(msg)
  796. #endif
  797. /* _GL_ATTRIBUTE_EXTERNALLY_VISIBLE declares that the entity should remain
  798. visible to debuggers etc., even with '-fwhole-program'. */
  799. /* Applies to: functions, variables. */
  800. #if _GL_HAS_ATTRIBUTE (externally_visible)
  801. # define _GL_ATTRIBUTE_EXTERNALLY_VISIBLE __attribute__ ((externally_visible))
  802. #else
  803. # define _GL_ATTRIBUTE_EXTERNALLY_VISIBLE
  804. #endif
  805. /* _GL_ATTRIBUTE_FALLTHROUGH declares that it is not a programming mistake if
  806. the control flow falls through to the immediately following 'case' or
  807. 'default' label. The compiler should not warn in this case. */
  808. /* Applies to: Empty statement (;), inside a 'switch' statement. */
  809. /* Always expands to something. */
  810. #if _GL_HAS_C_ATTRIBUTE (fallthrough)
  811. # define _GL_ATTRIBUTE_FALLTHROUGH [[__fallthrough__]]
  812. #elif _GL_HAS_ATTRIBUTE (fallthrough)
  813. # define _GL_ATTRIBUTE_FALLTHROUGH __attribute__ ((__fallthrough__))
  814. #else
  815. # define _GL_ATTRIBUTE_FALLTHROUGH ((void) 0)
  816. #endif
  817. /* _GL_ATTRIBUTE_FORMAT ((ARCHETYPE, STRING-INDEX, FIRST-TO-CHECK))
  818. declares that the STRING-INDEXth function argument is a format string of
  819. style ARCHETYPE, which is one of:
  820. printf, gnu_printf
  821. scanf, gnu_scanf,
  822. strftime, gnu_strftime,
  823. strfmon,
  824. or the same thing prefixed and suffixed with '__'.
  825. If FIRST-TO-CHECK is not 0, arguments starting at FIRST-TO_CHECK
  826. are suitable for the format string. */
  827. /* Applies to: functions. */
  828. #if _GL_HAS_ATTRIBUTE (format)
  829. # define _GL_ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec))
  830. #else
  831. # define _GL_ATTRIBUTE_FORMAT(spec)
  832. #endif
  833. /* _GL_ATTRIBUTE_LEAF declares that if the function is called from some other
  834. compilation unit, it executes code from that unit only by return or by
  835. exception handling. This declaration lets the compiler optimize that unit
  836. more aggressively. */
  837. /* Applies to: functions. */
  838. #if _GL_HAS_ATTRIBUTE (leaf)
  839. # define _GL_ATTRIBUTE_LEAF __attribute__ ((__leaf__))
  840. #else
  841. # define _GL_ATTRIBUTE_LEAF
  842. #endif
  843. /* _GL_ATTRIBUTE_MALLOC declares that the function returns a pointer to freshly
  844. allocated memory. */
  845. /* Applies to: functions. */
  846. #if _GL_HAS_ATTRIBUTE (malloc)
  847. # define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__))
  848. #else
  849. # define _GL_ATTRIBUTE_MALLOC
  850. #endif
  851. /* _GL_ATTRIBUTE_MAY_ALIAS declares that pointers to the type may point to the
  852. same storage as pointers to other types. Thus this declaration disables
  853. strict aliasing optimization. */
  854. /* Applies to: types. */
  855. /* Oracle Studio 12.6 mishandles may_alias despite __has_attribute OK. */
  856. #if _GL_HAS_ATTRIBUTE (may_alias) && !defined __SUNPRO_C
  857. # define _GL_ATTRIBUTE_MAY_ALIAS __attribute__ ((__may_alias__))
  858. #else
  859. # define _GL_ATTRIBUTE_MAY_ALIAS
  860. #endif
  861. /* _GL_ATTRIBUTE_MAYBE_UNUSED declares that it is not a programming mistake if
  862. the entity is not used. The compiler should not warn if the entity is not
  863. used. */
  864. /* Applies to:
  865. - function, variable,
  866. - struct, union, struct/union member,
  867. - enumeration, enumeration item,
  868. - typedef,
  869. in C++ also: class. */
  870. /* In C++ and C2x, this is spelled [[__maybe_unused__]].
  871. GCC's syntax is __attribute__ ((__unused__)).
  872. clang supports both syntaxes. */
  873. #if _GL_HAS_C_ATTRIBUTE (maybe_unused)
  874. # define _GL_ATTRIBUTE_MAYBE_UNUSED [[__maybe_unused__]]
  875. #else
  876. # define _GL_ATTRIBUTE_MAYBE_UNUSED _GL_ATTRIBUTE_UNUSED
  877. #endif
  878. /* Alternative spelling of this macro, for convenience. */
  879. #define _GL_UNUSED _GL_ATTRIBUTE_MAYBE_UNUSED
  880. /* Earlier spellings of this macro. */
  881. #define _UNUSED_PARAMETER_ _GL_ATTRIBUTE_MAYBE_UNUSED
  882. /* _GL_ATTRIBUTE_NODISCARD declares that the caller of the function should not
  883. discard the return value. The compiler may warn if the caller does not use
  884. the return value, unless the caller uses something like ignore_value. */
  885. /* Applies to: function, enumeration, class. */
  886. #if _GL_HAS_C_ATTRIBUTE (nodiscard)
  887. # define _GL_ATTRIBUTE_NODISCARD [[__nodiscard__]]
  888. #elif _GL_HAS_ATTRIBUTE (warn_unused_result)
  889. # define _GL_ATTRIBUTE_NODISCARD __attribute__ ((__warn_unused_result__))
  890. #else
  891. # define _GL_ATTRIBUTE_NODISCARD
  892. #endif
  893. /* _GL_ATTRIBUTE_NOINLINE tells that the compiler should not inline the
  894. function. */
  895. /* Applies to: functions. */
  896. #if _GL_HAS_ATTRIBUTE (noinline)
  897. # define _GL_ATTRIBUTE_NOINLINE __attribute__ ((__noinline__))
  898. #else
  899. # define _GL_ATTRIBUTE_NOINLINE
  900. #endif
  901. /* _GL_ATTRIBUTE_NONNULL ((N1, N2,...)) declares that the arguments N1, N2,...
  902. must not be NULL.
  903. _GL_ATTRIBUTE_NONNULL () declares that all pointer arguments must not be
  904. null. */
  905. /* Applies to: functions. */
  906. #if _GL_HAS_ATTRIBUTE (nonnull)
  907. # define _GL_ATTRIBUTE_NONNULL(args) __attribute__ ((__nonnull__ args))
  908. #else
  909. # define _GL_ATTRIBUTE_NONNULL(args)
  910. #endif
  911. /* _GL_ATTRIBUTE_NONSTRING declares that the contents of a character array is
  912. not meant to be NUL-terminated. */
  913. /* Applies to: struct/union members and variables that are arrays of element
  914. type '[[un]signed] char'. */
  915. #if _GL_HAS_ATTRIBUTE (nonstring)
  916. # define _GL_ATTRIBUTE_NONSTRING __attribute__ ((__nonstring__))
  917. #else
  918. # define _GL_ATTRIBUTE_NONSTRING
  919. #endif
  920. /* There is no _GL_ATTRIBUTE_NORETURN; use _Noreturn instead. */
  921. /* _GL_ATTRIBUTE_NOTHROW declares that the function does not throw exceptions.
  922. */
  923. /* Applies to: functions. */
  924. #if _GL_HAS_ATTRIBUTE (nothrow) && !defined __cplusplus
  925. # define _GL_ATTRIBUTE_NOTHROW __attribute__ ((__nothrow__))
  926. #else
  927. # define _GL_ATTRIBUTE_NOTHROW
  928. #endif
  929. /* _GL_ATTRIBUTE_PACKED declares:
  930. For struct members: The member has the smallest possible alignment.
  931. For struct, union, class: All members have the smallest possible alignment,
  932. minimizing the memory required. */
  933. /* Applies to: struct members, struct, union,
  934. in C++ also: class. */
  935. #if _GL_HAS_ATTRIBUTE (packed)
  936. # define _GL_ATTRIBUTE_PACKED __attribute__ ((__packed__))
  937. #else
  938. # define _GL_ATTRIBUTE_PACKED
  939. #endif
  940. /* _GL_ATTRIBUTE_PURE declares that It is OK for a compiler to omit duplicate
  941. calls to the function with the same arguments if observable state is not
  942. changed between calls.
  943. This attribute is safe for a function that does not affect
  944. observable state, and always returns exactly once.
  945. (This attribute is looser than _GL_ATTRIBUTE_CONST.) */
  946. /* Applies to: functions. */
  947. #if _GL_HAS_ATTRIBUTE (pure)
  948. # define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
  949. #else
  950. # define _GL_ATTRIBUTE_PURE
  951. #endif
  952. /* _GL_ATTRIBUTE_RETURNS_NONNULL declares that the function's return value is
  953. a non-NULL pointer. */
  954. /* Applies to: functions. */
  955. #if _GL_HAS_ATTRIBUTE (returns_nonnull)
  956. # define _GL_ATTRIBUTE_RETURNS_NONNULL __attribute__ ((__returns_nonnull__))
  957. #else
  958. # define _GL_ATTRIBUTE_RETURNS_NONNULL
  959. #endif
  960. /* _GL_ATTRIBUTE_SENTINEL(pos) declares that the variadic function expects a
  961. trailing NULL argument.
  962. _GL_ATTRIBUTE_SENTINEL () - The last argument is NULL (requires C99).
  963. _GL_ATTRIBUTE_SENTINEL ((N)) - The (N+1)st argument from the end is NULL. */
  964. /* Applies to: functions. */
  965. #if _GL_HAS_ATTRIBUTE (sentinel)
  966. # define _GL_ATTRIBUTE_SENTINEL(pos) __attribute__ ((__sentinel__ pos))
  967. #else
  968. # define _GL_ATTRIBUTE_SENTINEL(pos)
  969. #endif
  970. /* A helper macro. Don't use it directly. */
  971. #if _GL_HAS_ATTRIBUTE (unused)
  972. # define _GL_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
  973. #else
  974. # define _GL_ATTRIBUTE_UNUSED
  975. #endif
  976. /* _GL_UNUSED_LABEL; declares that it is not a programming mistake if the
  977. immediately preceding label is not used. The compiler should not warn
  978. if the label is not used. */
  979. /* Applies to: label (both in C and C++). */
  980. /* Note that g++ < 4.5 does not support the '__attribute__ ((__unused__)) ;'
  981. syntax. But clang does. */
  982. #if !(defined __cplusplus && !_GL_GNUC_PREREQ (4, 5)) || defined __clang__
  983. # define _GL_UNUSED_LABEL _GL_ATTRIBUTE_UNUSED
  984. #else
  985. # define _GL_UNUSED_LABEL
  986. #endif
  987. /* A replacement for va_copy, if needed. */
  988. #define gl_va_copy(a,b) ((a) = (b))
  989. /* Define to `__inline__' or `__inline' if that's what the C compiler
  990. calls it, or to nothing if 'inline' is not supported under any name. */
  991. #ifndef __cplusplus
  992. /* #undef inline */
  993. #endif
  994. /* Work around a bug in Apple GCC 4.0.1 build 5465: In C99 mode, it supports
  995. the ISO C 99 semantics of 'extern inline' (unlike the GNU C semantics of
  996. earlier versions), but does not display it by setting __GNUC_STDC_INLINE__.
  997. __APPLE__ && __MACH__ test for Mac OS X.
  998. __APPLE_CC__ tests for the Apple compiler and its version.
  999. __STDC_VERSION__ tests for the C99 mode. */
  1000. #if defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && !defined __cplusplus && __STDC_VERSION__ >= 199901L && !defined __GNUC_STDC_INLINE__
  1001. # define __GNUC_STDC_INLINE__ 1
  1002. #endif
  1003. /* _GL_CMP (n1, n2) performs a three-valued comparison on n1 vs. n2, where
  1004. n1 and n2 are expressions without side effects, that evaluate to real
  1005. numbers (excluding NaN).
  1006. It returns
  1007. 1 if n1 > n2
  1008. 0 if n1 == n2
  1009. -1 if n1 < n2
  1010. The naïve code (n1 > n2 ? 1 : n1 < n2 ? -1 : 0) produces a conditional
  1011. jump with nearly all GCC versions up to GCC 10.
  1012. This variant (n1 < n2 ? -1 : n1 > n2) produces a conditional with many
  1013. GCC versions up to GCC 9.
  1014. The better code (n1 > n2) - (n1 < n2) from Hacker's Delight § 2-9
  1015. avoids conditional jumps in all GCC versions >= 3.4. */
  1016. #define _GL_CMP(n1, n2) (((n1) > (n2)) - ((n1) < (n2)))
  1017. /* Define to `int' if <sys/types.h> does not define. */
  1018. /* #undef mode_t */
  1019. /* Define to the type of st_nlink in struct stat, or a supertype. */
  1020. /* #undef nlink_t */
  1021. /* Define as a signed integer type capable of holding a process identifier. */
  1022. /* #undef pid_t */
  1023. /* Work around a bug in older versions of Sun C++, which did not
  1024. #define __restrict__ or support _Restrict or __restrict__
  1025. even though the corresponding Sun C compiler ended up with
  1026. "#define restrict _Restrict" or "#define restrict __restrict__"
  1027. in the previous line. This workaround can be removed once
  1028. we assume Oracle Developer Studio 12.5 (2016) or later. */
  1029. #if defined __SUNPRO_CC && !defined __RESTRICT && !defined __restrict__
  1030. # define _Restrict
  1031. # define __restrict__
  1032. #endif
  1033. /* Define to `unsigned int' if <sys/types.h> does not define. */
  1034. /* #undef size_t */
  1035. /* Define as a signed type of the same size as size_t. */
  1036. /* #undef ssize_t */
  1037. /* This definition is a duplicate of the one in unitypes.h.
  1038. It is here so that we can cope with an older version of unitypes.h
  1039. that does not contain this definition and that is pre-installed among
  1040. the public header files. */
  1041. # if defined __restrict \
  1042. || 2 < __GNUC__ + (95 <= __GNUC_MINOR__) \
  1043. || __clang_major__ >= 3
  1044. # define _UC_RESTRICT __restrict
  1045. # elif 199901L <= __STDC_VERSION__ || defined restrict
  1046. # define _UC_RESTRICT restrict
  1047. # else
  1048. # define _UC_RESTRICT
  1049. # endif
  1050. /* Define as a macro for copying va_list variables. */
  1051. /* #undef va_copy */