Fix MS-Windows build with MSVC compiler.
authorEli Zaretskii <eliz@gnu.org>
Sun, 27 Nov 2011 18:52:53 +0000 (20:52 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 27 Nov 2011 18:52:53 +0000 (20:52 +0200)
commit8c9afb46949ddd9853f38eb8c1a865cb13522d92
tree2169011e33dec345430c7ed64db7b61ade7165f6
parent54e9e3bf847d39b8c0daa46a999efeb6f84c9d76
Fix MS-Windows build with MSVC compiler.

Parts of the changes by Fabrice Popineau  <fabrice.popineau@supelec.fr>.

 lib-src/makefile.w32-in (LOCAL_FLAGS): Add $(EMACS_EXTRA_C_FLAGS).
 lib-src/emacsclient.c (main) <environ>: Remove declaration, already
 pulled in by unistd.h on Posix hosts and stdlib.h on MS-Windows.
 nt/inc/stdint.h (uint32_t, uint64_t) [_WIN64]: New typedefs.
 (UINT64_MAX) [_WIN64]: Fix definition.
 (uintmax_t, intmax_t): Fix definitions.
 nt/inc/inttypes.h (strtoumax, strtoimax) [!__MINGW32__]: Provide
 correct definitions.
 nt/config.nt (HAVE_DECL_STRTOLL): Define.
 (va_copy) [_WIN64]: Provide a better definition.
 src/s/ms-w32.h (utimbuf) [_MSC_VER]: Don't define.
 (snprintf) [_MSC_VER]: Redirect to _snprintf.
 (strtoll) [_MSC_VER]: Redirect to _strtoi64.
 (malloc, free, realloc, calloc): Redirect to e_* only when
 compiling Emacs.
 src/lisp.h (GCTYPEBITS): Move before first use.
 (ALIGN_GCTYPEBITS) [_MSC_VER]: Define.
 (DECL_ALIGN) [_MSC_VER]: Use it, as MSVC doesn't like bit ops in
 this macro definition.
 (tzname): Redirect to _tzname for all values of _MSC_VER.

Fixes: debbugs:9960
lib-src/ChangeLog
lib-src/emacsclient.c
lib-src/makefile.w32-in
nt/ChangeLog
nt/config.nt
nt/inc/inttypes.h
nt/inc/stdint.h
src/ChangeLog
src/lisp.h
src/s/ms-w32.h