Add battery support to all Cygwin builds
commit5af5df1f7c20858dab762830e1a94994ceda425b
authorKen Brown <kbrown@cornell.edu>
Fri, 12 Jan 2018 13:51:16 +0000 (12 08:51 -0500)
committerKen Brown <kbrown@cornell.edu>
Sat, 13 Jan 2018 18:16:47 +0000 (13 13:16 -0500)
tree3252d74339e51877b1cc88c363ba41ee8f83bb9e
parent7f52a102ad8234dbfe59a005034c7fc3e4fe538c
Add battery support to all Cygwin builds

It already exists in the Cygwin-w32 build.
* src/w32fns.c (Fw32_battery_status): Move to...
* src/w32cygwinx: New file, to be used for functions common to
the MS Windows and Cygwin builds.
(syms_of_w32cygwinx): New function.
* src/lisp.h: Add prototype of syms_of_w32cygwinx.
* src/emacs.c (main) [HAVE_NTGUI or CYGWIN]: Call syms_of_w32cygwinx.
* src/Makefile.in (SOME_MACHINE_OBJECTS):
* configure.ac (W32_OBJ) [HAVE_W32]: Add w32cygwinx.o.
(W32_LIBS) [CYGWIN]: Set equal to "-lkernel32" in non-w32 build.
(W32_OBJ) [CYGWIN]: Set equal to "w32cygwinx.o" in non-w32 build.
* etc/NEWS: Document the new battery support.
configure.ac
etc/NEWS
src/Makefile.in
src/emacs.c
src/lisp.h
src/w32cygwinx.c [new file with mode: 0644]
src/w32fns.c