config-linux.h 52 KB

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