Bug 461841: Use configure-defined macros in #ifdefs for WinCE in js/src. r=crowder
commit21c37987d9a1c2af389322f29e843c0bd206796b
authorJim Blandy <jimb@mozilla.org>
Fri, 16 Jan 2009 22:10:48 +0000 (16 14:10 -0800)
committerJim Blandy <jimb@mozilla.org>
Fri, 16 Jan 2009 22:10:48 +0000 (16 14:10 -0800)
treedb4401d85f4df02322d4a61a3881fb07bae15fff
parent115efeacd06c4efdd3d0c44c4a9967cae5893130
Bug 461841: Use configure-defined macros in #ifdefs for WinCE in js/src. r=crowder

Perform the appropriate configure-time tests, and hard-code the
answers for targets that don't support autoconf-style tests.  Check
for the io.h header, and the setbuf and isatty library functions.

In js/src/xpconnect/shell/xpcshell.cpp, use configure-#defined
preprocessor symbols to decide what to #include and use.  The
top-level configure script defines the preprocessor symbols used here.

In js/src/prmjtime.cpp, use them to select the appropriate method for
retrieving fine-grained time information for Windows and WinCE.  The
js/src/configure script defines the preprocessor symbols used here.

(This should cover the issues addressed by patch.v2 in bug 461841,
except for the stdint issue.)
configure.in
js/src/configure.in
js/src/js-config.h.in
js/src/jsstdint.h
js/src/prmjtime.cpp
js/src/prmjtime.h
js/src/xpconnect/shell/xpcshell.cpp