mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-29 21:25:35 +00:00
8d8846acd1
At configure time, check for <stdint.h>. If we don't have it, find integer types of various sizes. On Windows, where we can't run compilation tests in configure, hard-code definitions suggesting the use of the built-in __intN types for the exact-size types, and <stddef.h> for the pointer-sized types. Use namespace-clean names for the preprocessor macros we define. Since these types are used in the public JavaScript API, the configure script needs to place the definitions it finds in js-config.h, the installed configure-generated header, so it can be used by jsapi.h and that gang. New header js/src/jsstdint.h does what it takes to get definitions for the exact-size and pointer-size integral types. It includes <stdint.h> when available, uses the types found by configure.in to define the {,u}int{8,16,32,64,ptr}_t types itself, or uses the __intN types and the <stddef.h> header. Remove now-unnecessary and possibly conflicting definitions of intN_t types from js/src/nanojit/avmplus.h. |
||
---|---|---|
.. | ||
jsd | ||
narcissus | ||
src | ||
tests | ||
landbranch.pl | ||
makefile.win |