1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-09 09:16:02 -08:00

; Fix last change to compile with mingw.org's MinGW

* src/w32xfns.c:
* src/w32fns.c (WTS_VIRTUAL_CLASS) [!MINGW_W64]: Declare.
* src/w32xfns.c: Include wtsapi32.h.
This commit is contained in:
Eli Zaretskii 2024-03-14 10:22:52 +02:00
parent e7b1743b79
commit 7971537d3c
2 changed files with 18 additions and 0 deletions

View file

@ -47,6 +47,13 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
#include "w32inevt.h"
#ifdef WINDOWSNT
/* mingw.org's MinGW headers mistakenly omit this enumeration: */
# ifndef MINGW_W64
typedef enum _WTS_VIRTUAL_CLASS {
WTSVirtualClientData,
WTSVirtualFileHandle
} WTS_VIRTUAL_CLASS;
# endif
#include <mbstring.h>
#include <mbctype.h> /* for _getmbcp */
#include <wtsapi32.h> /* for WTS(Un)RegisterSessionNotification */

View file

@ -22,6 +22,17 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
#include <stdio.h>
#include <windows.h>
#include <windowsx.h>
/* Override API version to get the required functionality. */
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0501
/* mingw.org's MinGW headers mistakenly omit this enumeration: */
# ifndef MINGW_W64
typedef enum _WTS_VIRTUAL_CLASS {
WTSVirtualClientData,
WTSVirtualFileHandle
} WTS_VIRTUAL_CLASS;
# endif
#include <wtsapi32.h> /* for WM_WTSSESSION_CHANGE, WTS_SESSION_LOCK */
#include "lisp.h"
#include "frame.h"