CMakeCCompilerId.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499
  1. #ifdef __cplusplus
  2. # error "A C++ compiler has been selected for C."
  3. #endif
  4. #if defined(__18CXX)
  5. # define ID_VOID_MAIN
  6. #endif
  7. /* Version number components: V=Version, R=Revision, P=Patch
  8. Version date components: YYYY=Year, MM=Month, DD=Day */
  9. #if defined(__INTEL_COMPILER) || defined(__ICC)
  10. # define COMPILER_ID "Intel"
  11. # if defined(_MSC_VER)
  12. # define SIMULATE_ID "MSVC"
  13. # endif
  14. /* __INTEL_COMPILER = VRP */
  15. # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
  16. # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
  17. # if defined(__INTEL_COMPILER_UPDATE)
  18. # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
  19. # else
  20. # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
  21. # endif
  22. # if defined(__INTEL_COMPILER_BUILD_DATE)
  23. /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
  24. # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
  25. # endif
  26. # if defined(_MSC_VER)
  27. /* _MSC_VER = VVRR */
  28. # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
  29. # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
  30. # endif
  31. #elif defined(__PATHCC__)
  32. # define COMPILER_ID "PathScale"
  33. # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
  34. # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
  35. # if defined(__PATHCC_PATCHLEVEL__)
  36. # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
  37. # endif
  38. #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
  39. # define COMPILER_ID "Embarcadero"
  40. # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
  41. # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
  42. # define COMPILER_VERSION_PATCH HEX(__CODEGEARC_VERSION__ & 0xFFFF)
  43. #elif defined(__BORLANDC__)
  44. # define COMPILER_ID "Borland"
  45. /* __BORLANDC__ = 0xVRR */
  46. # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
  47. # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
  48. #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
  49. # define COMPILER_ID "Watcom"
  50. /* __WATCOMC__ = VVRR */
  51. # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
  52. # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
  53. # if (__WATCOMC__ % 10) > 0
  54. # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
  55. # endif
  56. #elif defined(__WATCOMC__)
  57. # define COMPILER_ID "OpenWatcom"
  58. /* __WATCOMC__ = VVRP + 1100 */
  59. # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
  60. # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
  61. # if (__WATCOMC__ % 10) > 0
  62. # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
  63. # endif
  64. #elif defined(__SUNPRO_C)
  65. # define COMPILER_ID "SunPro"
  66. # if __SUNPRO_C >= 0x5100
  67. /* __SUNPRO_C = 0xVRRP */
  68. # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>12)
  69. # define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xFF)
  70. # define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF)
  71. # else
  72. /* __SUNPRO_CC = 0xVRP */
  73. # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>8)
  74. # define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xF)
  75. # define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF)
  76. # endif
  77. #elif defined(__HP_cc)
  78. # define COMPILER_ID "HP"
  79. /* __HP_cc = VVRRPP */
  80. # define COMPILER_VERSION_MAJOR DEC(__HP_cc/10000)
  81. # define COMPILER_VERSION_MINOR DEC(__HP_cc/100 % 100)
  82. # define COMPILER_VERSION_PATCH DEC(__HP_cc % 100)
  83. #elif defined(__DECC)
  84. # define COMPILER_ID "Compaq"
  85. /* __DECC_VER = VVRRTPPPP */
  86. # define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000)
  87. # define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100)
  88. # define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000)
  89. #elif defined(__IBMC__) && defined(__COMPILER_VER__)
  90. # define COMPILER_ID "zOS"
  91. /* __IBMC__ = VRP */
  92. # define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
  93. # define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
  94. # define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
  95. #elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ >= 800
  96. # define COMPILER_ID "XL"
  97. /* __IBMC__ = VRP */
  98. # define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
  99. # define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
  100. # define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
  101. #elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ < 800
  102. # define COMPILER_ID "VisualAge"
  103. /* __IBMC__ = VRP */
  104. # define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
  105. # define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
  106. # define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
  107. #elif defined(__PGI)
  108. # define COMPILER_ID "PGI"
  109. # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
  110. # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
  111. # if defined(__PGIC_PATCHLEVEL__)
  112. # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
  113. # endif
  114. #elif defined(_CRAYC)
  115. # define COMPILER_ID "Cray"
  116. # define COMPILER_VERSION_MAJOR DEC(_RELEASE)
  117. # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
  118. #elif defined(__TI_COMPILER_VERSION__)
  119. # define COMPILER_ID "TI"
  120. /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
  121. # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
  122. # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
  123. # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
  124. #elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)
  125. # define COMPILER_ID "Fujitsu"
  126. #elif defined(__TINYC__)
  127. # define COMPILER_ID "TinyCC"
  128. #elif defined(__SCO_VERSION__)
  129. # define COMPILER_ID "SCO"
  130. #elif defined(__clang__) && defined(__apple_build_version__)
  131. # define COMPILER_ID "AppleClang"
  132. # if defined(_MSC_VER)
  133. # define SIMULATE_ID "MSVC"
  134. # endif
  135. # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
  136. # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
  137. # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
  138. # if defined(_MSC_VER)
  139. /* _MSC_VER = VVRR */
  140. # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
  141. # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
  142. # endif
  143. # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
  144. #elif defined(__clang__)
  145. # define COMPILER_ID "Clang"
  146. # if defined(_MSC_VER)
  147. # define SIMULATE_ID "MSVC"
  148. # endif
  149. # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
  150. # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
  151. # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
  152. # if defined(_MSC_VER)
  153. /* _MSC_VER = VVRR */
  154. # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
  155. # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
  156. # endif
  157. #elif defined(__GNUC__)
  158. # define COMPILER_ID "GNU"
  159. # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
  160. # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
  161. # if defined(__GNUC_PATCHLEVEL__)
  162. # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
  163. # endif
  164. #elif defined(_MSC_VER)
  165. # define COMPILER_ID "MSVC"
  166. /* _MSC_VER = VVRR */
  167. # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
  168. # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
  169. # if defined(_MSC_FULL_VER)
  170. # if _MSC_VER >= 1400
  171. /* _MSC_FULL_VER = VVRRPPPPP */
  172. # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
  173. # else
  174. /* _MSC_FULL_VER = VVRRPPPP */
  175. # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
  176. # endif
  177. # endif
  178. # if defined(_MSC_BUILD)
  179. # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
  180. # endif
  181. #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
  182. # define COMPILER_ID "ADSP"
  183. #if defined(__VISUALDSPVERSION__)
  184. /* __VISUALDSPVERSION__ = 0xVVRRPP00 */
  185. # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
  186. # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
  187. # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
  188. #endif
  189. #elif defined(__IAR_SYSTEMS_ICC__ ) || defined(__IAR_SYSTEMS_ICC)
  190. # define COMPILER_ID "IAR"
  191. #elif defined(SDCC)
  192. # define COMPILER_ID "SDCC"
  193. /* SDCC = VRP */
  194. # define COMPILER_VERSION_MAJOR DEC(SDCC/100)
  195. # define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10)
  196. # define COMPILER_VERSION_PATCH DEC(SDCC % 10)
  197. #elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION)
  198. # define COMPILER_ID "MIPSpro"
  199. # if defined(_SGI_COMPILER_VERSION)
  200. /* _SGI_COMPILER_VERSION = VRP */
  201. # define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100)
  202. # define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10)
  203. # define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10)
  204. # else
  205. /* _COMPILER_VERSION = VRP */
  206. # define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100)
  207. # define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10)
  208. # define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10)
  209. # endif
  210. /* These compilers are either not known or too old to define an
  211. identification macro. Try to identify the platform and guess that
  212. it is the native compiler. */
  213. #elif defined(__sgi)
  214. # define COMPILER_ID "MIPSpro"
  215. #elif defined(__hpux) || defined(__hpua)
  216. # define COMPILER_ID "HP"
  217. #else /* unknown compiler */
  218. # define COMPILER_ID ""
  219. #endif
  220. /* Construct the string literal in pieces to prevent the source from
  221. getting matched. Store it in a pointer rather than an array
  222. because some compilers will just produce instructions to fill the
  223. array rather than assigning a pointer to a static array. */
  224. char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
  225. #ifdef SIMULATE_ID
  226. char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
  227. #endif
  228. #ifdef __QNXNTO__
  229. char const* qnxnto = "INFO" ":" "qnxnto[]";
  230. #endif
  231. /* Identify known platforms by name. */
  232. #if defined(__linux) || defined(__linux__) || defined(linux)
  233. # define PLATFORM_ID "Linux"
  234. #elif defined(__CYGWIN__)
  235. # define PLATFORM_ID "Cygwin"
  236. #elif defined(__MINGW32__)
  237. # define PLATFORM_ID "MinGW"
  238. #elif defined(__APPLE__)
  239. # define PLATFORM_ID "Darwin"
  240. #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
  241. # define PLATFORM_ID "Windows"
  242. #elif defined(__FreeBSD__) || defined(__FreeBSD)
  243. # define PLATFORM_ID "FreeBSD"
  244. #elif defined(__NetBSD__) || defined(__NetBSD)
  245. # define PLATFORM_ID "NetBSD"
  246. #elif defined(__OpenBSD__) || defined(__OPENBSD)
  247. # define PLATFORM_ID "OpenBSD"
  248. #elif defined(__sun) || defined(sun)
  249. # define PLATFORM_ID "SunOS"
  250. #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
  251. # define PLATFORM_ID "AIX"
  252. #elif defined(__sgi) || defined(__sgi__) || defined(_SGI)
  253. # define PLATFORM_ID "IRIX"
  254. #elif defined(__hpux) || defined(__hpux__)
  255. # define PLATFORM_ID "HP-UX"
  256. #elif defined(__HAIKU__)
  257. # define PLATFORM_ID "Haiku"
  258. #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
  259. # define PLATFORM_ID "BeOS"
  260. #elif defined(__QNX__) || defined(__QNXNTO__)
  261. # define PLATFORM_ID "QNX"
  262. #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
  263. # define PLATFORM_ID "Tru64"
  264. #elif defined(__riscos) || defined(__riscos__)
  265. # define PLATFORM_ID "RISCos"
  266. #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
  267. # define PLATFORM_ID "SINIX"
  268. #elif defined(__UNIX_SV__)
  269. # define PLATFORM_ID "UNIX_SV"
  270. #elif defined(__bsdos__)
  271. # define PLATFORM_ID "BSDOS"
  272. #elif defined(_MPRAS) || defined(MPRAS)
  273. # define PLATFORM_ID "MP-RAS"
  274. #elif defined(__osf) || defined(__osf__)
  275. # define PLATFORM_ID "OSF1"
  276. #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
  277. # define PLATFORM_ID "SCO_SV"
  278. #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
  279. # define PLATFORM_ID "ULTRIX"
  280. #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
  281. # define PLATFORM_ID "Xenix"
  282. #elif defined(__WATCOMC__)
  283. # if defined(__LINUX__)
  284. # define PLATFORM_ID "Linux"
  285. # elif defined(__DOS__)
  286. # define PLATFORM_ID "DOS"
  287. # elif defined(__OS2__)
  288. # define PLATFORM_ID "OS2"
  289. # elif defined(__WINDOWS__)
  290. # define PLATFORM_ID "Windows3x"
  291. # else /* unknown platform */
  292. # define PLATFORM_ID ""
  293. # endif
  294. #else /* unknown platform */
  295. # define PLATFORM_ID ""
  296. #endif
  297. /* For windows compilers MSVC and Intel we can determine
  298. the architecture of the compiler being used. This is because
  299. the compilers do not have flags that can change the architecture,
  300. but rather depend on which compiler is being used
  301. */
  302. #if defined(_WIN32) && defined(_MSC_VER)
  303. # if defined(_M_IA64)
  304. # define ARCHITECTURE_ID "IA64"
  305. # elif defined(_M_X64) || defined(_M_AMD64)
  306. # define ARCHITECTURE_ID "x64"
  307. # elif defined(_M_IX86)
  308. # define ARCHITECTURE_ID "X86"
  309. # elif defined(_M_ARM)
  310. # define ARCHITECTURE_ID "ARM"
  311. # elif defined(_M_MIPS)
  312. # define ARCHITECTURE_ID "MIPS"
  313. # elif defined(_M_SH)
  314. # define ARCHITECTURE_ID "SHx"
  315. # else /* unknown architecture */
  316. # define ARCHITECTURE_ID ""
  317. # endif
  318. #elif defined(__WATCOMC__)
  319. # if defined(_M_I86)
  320. # define ARCHITECTURE_ID "I86"
  321. # elif defined(_M_IX86)
  322. # define ARCHITECTURE_ID "X86"
  323. # else /* unknown architecture */
  324. # define ARCHITECTURE_ID ""
  325. # endif
  326. #else
  327. # define ARCHITECTURE_ID ""
  328. #endif
  329. /* Convert integer to decimal digit literals. */
  330. #define DEC(n) \
  331. ('0' + (((n) / 10000000)%10)), \
  332. ('0' + (((n) / 1000000)%10)), \
  333. ('0' + (((n) / 100000)%10)), \
  334. ('0' + (((n) / 10000)%10)), \
  335. ('0' + (((n) / 1000)%10)), \
  336. ('0' + (((n) / 100)%10)), \
  337. ('0' + (((n) / 10)%10)), \
  338. ('0' + ((n) % 10))
  339. /* Convert integer to hex digit literals. */
  340. #define HEX(n) \
  341. ('0' + ((n)>>28 & 0xF)), \
  342. ('0' + ((n)>>24 & 0xF)), \
  343. ('0' + ((n)>>20 & 0xF)), \
  344. ('0' + ((n)>>16 & 0xF)), \
  345. ('0' + ((n)>>12 & 0xF)), \
  346. ('0' + ((n)>>8 & 0xF)), \
  347. ('0' + ((n)>>4 & 0xF)), \
  348. ('0' + ((n) & 0xF))
  349. /* Construct a string literal encoding the version number components. */
  350. #ifdef COMPILER_VERSION_MAJOR
  351. char const info_version[] = {
  352. 'I', 'N', 'F', 'O', ':',
  353. 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
  354. COMPILER_VERSION_MAJOR,
  355. # ifdef COMPILER_VERSION_MINOR
  356. '.', COMPILER_VERSION_MINOR,
  357. # ifdef COMPILER_VERSION_PATCH
  358. '.', COMPILER_VERSION_PATCH,
  359. # ifdef COMPILER_VERSION_TWEAK
  360. '.', COMPILER_VERSION_TWEAK,
  361. # endif
  362. # endif
  363. # endif
  364. ']','\0'};
  365. #endif
  366. /* Construct a string literal encoding the version number components. */
  367. #ifdef SIMULATE_VERSION_MAJOR
  368. char const info_simulate_version[] = {
  369. 'I', 'N', 'F', 'O', ':',
  370. 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
  371. SIMULATE_VERSION_MAJOR,
  372. # ifdef SIMULATE_VERSION_MINOR
  373. '.', SIMULATE_VERSION_MINOR,
  374. # ifdef SIMULATE_VERSION_PATCH
  375. '.', SIMULATE_VERSION_PATCH,
  376. # ifdef SIMULATE_VERSION_TWEAK
  377. '.', SIMULATE_VERSION_TWEAK,
  378. # endif
  379. # endif
  380. # endif
  381. ']','\0'};
  382. #endif
  383. /* Construct the string literal in pieces to prevent the source from
  384. getting matched. Store it in a pointer rather than an array
  385. because some compilers will just produce instructions to fill the
  386. array rather than assigning a pointer to a static array. */
  387. char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
  388. char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
  389. /*--------------------------------------------------------------------------*/
  390. #ifdef ID_VOID_MAIN
  391. void main() {}
  392. #else
  393. int main(int argc, char* argv[])
  394. {
  395. int require = 0;
  396. require += info_compiler[argc];
  397. require += info_platform[argc];
  398. require += info_arch[argc];
  399. #ifdef COMPILER_VERSION_MAJOR
  400. require += info_version[argc];
  401. #endif
  402. #ifdef SIMULATE_ID
  403. require += info_simulate[argc];
  404. #endif
  405. #ifdef SIMULATE_VERSION_MAJOR
  406. require += info_simulate_version[argc];
  407. #endif
  408. (void)argv;
  409. return require;
  410. }
  411. #endif