ms-w32.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  1. /* System description file for Windows NT.
  2. Copyright (C) 1993-1995, 2001-2017 Free Software Foundation, Inc.
  3. This file is part of GNU Emacs.
  4. GNU Emacs is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or (at
  7. your option) any later version.
  8. GNU Emacs is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
  14. /* Define symbols to identify the version of Unix this is.
  15. Define all the symbols that apply correctly. */
  16. #ifndef WINDOWSNT
  17. #define WINDOWSNT
  18. #endif
  19. #include <mingw_time.h>
  20. /* MinGW-w64 gcc does not automotically define a macro for
  21. differentiating it fom MinGW gcc. We need to test the presence of
  22. __MINGW64_VERSION_MAJOR in _mingw.h: */
  23. #ifdef __MINGW32__
  24. # include <_mingw.h>
  25. # ifdef __MINGW64_VERSION_MAJOR
  26. # define MINGW_W64
  27. # endif
  28. #endif
  29. /* #undef const */
  30. /* Number of chars of output in the buffer of a stdio stream. */
  31. #ifdef __GNU_LIBRARY__
  32. #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer)
  33. #else
  34. #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base)
  35. #endif
  36. /* If you are compiling with a non-C calling convention but need to
  37. declare vararg routines differently, put it here. */
  38. #define _VARARGS_ __cdecl
  39. /* If you are providing a function to something that will call the
  40. function back (like a signal handler and signal, or main) its calling
  41. convention must be whatever standard the libraries expect. */
  42. #define _CALLBACK_ __cdecl
  43. /* Define HAVE_TIMEVAL if the system supports the BSD style clock values.
  44. Look in <sys/time.h> for a timeval structure. */
  45. #define HAVE_TIMEVAL 1
  46. /* And the select implementation does 1-byte read-ahead waiting
  47. for received packets, so datagrams are broken too. */
  48. #define BROKEN_DATAGRAM_SOCKETS 1
  49. #define MAIL_USE_SYSTEM_LOCK 1
  50. /* Define to 1 if GCC-style __attribute__ ((__aligned__ (expr))) works. */
  51. #ifdef __GNUC__
  52. #define HAVE_ATTRIBUTE_ALIGNED 1
  53. #endif
  54. /* Define to 1 if strtold conforms to C99. */
  55. #ifdef __GNUC__
  56. #define HAVE_C99_STRTOLD 1
  57. #endif
  58. #if (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8))
  59. # ifndef HAVE___BUILTIN_UNWIND_INIT
  60. # define HAVE___BUILTIN_UNWIND_INIT 1
  61. # endif
  62. #endif
  63. /* This isn't perfect, as some systems might have the page file in
  64. another place. Also, I suspect that the time stamp of that file
  65. might also change when Windows enlarges the file due to
  66. insufficient VM. Still, this seems to be the most reliable way;
  67. the alternative (of using GetSystemTimes) won't work on laptops
  68. that hibernate, because the system clock is stopped then. Other
  69. possibility would be to run "net statistics workstation" and parse
  70. the output, but that's gross. So this should do; if the file is
  71. not there, the boot time will be returned as zero, and filelock.c
  72. already handles that. */
  73. #define BOOT_TIME_FILE "C:/pagefile.sys"
  74. /* ============================================================ */
  75. /* Here, add any special hacks needed to make Emacs work on this
  76. system. For example, you might define certain system call names
  77. that don't exist on your system, or that do different things on
  78. your system and must be used only through an encapsulation (which
  79. you should place, by convention, in sysdep.c). */
  80. #ifdef __GNUC__
  81. #ifndef __cplusplus
  82. #undef inline
  83. #endif
  84. #else /* MSVC */
  85. #define inline __inline
  86. #endif
  87. #ifdef __GNUC__
  88. /* config.h may have defined already. */
  89. # ifndef restrict
  90. # define restrict __restrict__
  91. # endif
  92. #else
  93. /* FIXME: should we define to __restrict, which MSVC supports? */
  94. # define restrict
  95. #endif
  96. /* `mode_t' is not defined for MSVC. Define. */
  97. #ifdef _MSC_VER
  98. typedef unsigned short mode_t;
  99. #endif
  100. /* A va_copy replacement for MSVC. */
  101. #ifdef _MSC_VER
  102. # ifdef _WIN64
  103. # ifndef va_copy /* Need to be checked (?) */
  104. # define va_copy(d,s) ((d) = (s))
  105. # endif
  106. # else /* not _WIN64 */
  107. # define va_copy(d,s) ((d) = (s))
  108. # endif /* not _WIN64 */
  109. #endif /* _MSC_VER */
  110. #ifndef WINDOWSNT
  111. /* Some of the files of Emacs which are intended for use with other
  112. programs assume that if you have a config.h file, you must declare
  113. the type of getenv. */
  114. extern char *getenv ();
  115. #endif
  116. /* Prevent accidental use of features unavailable in older Windows
  117. versions we still support. MinGW64 defines this to a higher value
  118. in its system headers, and is not really compatible with values
  119. lower than 0x0500, so leave it alone. */
  120. #ifndef MINGW_W64
  121. # undef _WIN32_WINNT
  122. # define _WIN32_WINNT 0x0400
  123. #endif
  124. /* Make a leaner executable. */
  125. #define WIN32_LEAN_AND_MEAN
  126. #include <sys/types.h>
  127. #ifndef MAXPATHLEN
  128. #define MAXPATHLEN _MAX_PATH
  129. #endif
  130. /* This is used to hold UTF-8 encoded file names. */
  131. #define MAX_UTF8_PATH (MAXPATHLEN * 4)
  132. #ifdef HAVE_NTGUI
  133. # ifndef HAVE_WINDOW_SYSTEM
  134. # define HAVE_WINDOW_SYSTEM 1
  135. # define POLL_FOR_INPUT 1
  136. # endif
  137. #endif
  138. /* Get some redefinitions in place. */
  139. #ifdef emacs
  140. #ifdef MINGW_W64
  141. /* MinGW64 specific stuff. */
  142. /* Make sure 'struct timespec' and 'struct timezone' are defined. */
  143. #include <sys/types.h>
  144. #include <time.h>
  145. /* This prototype avoids MinGW64 compiler warnings due to the fact
  146. that time.h is included before localtime is redirected to
  147. sys_localtime below. */
  148. extern struct tm * sys_localtime (const time_t *);
  149. /* MinGW64 uses a 2-argument _setjmp, and setjmp is a macro defined to
  150. supply the 2nd arg correctly, so don't use _setjmp directly in that
  151. case. */
  152. #undef HAVE__SETJMP
  153. /* Unlike MS and mingw.org, MinGW64 doesn't define gai_strerror as an
  154. inline function in a system header file, and instead seems to
  155. require to link against ws2_32.a. But we don't want to link with
  156. -lws2_32, as that would make Emacs dependent on the respective DLL.
  157. So MinGW64 is amply punished here by the following: */
  158. #undef HAVE_GAI_STRERROR
  159. #endif
  160. /* The following is needed for recovery from C stack overflows. */
  161. #include <setjmp.h>
  162. typedef jmp_buf sigjmp_buf;
  163. #ifdef MINGW_W64
  164. /* Evidently, MinGW64's longjmp crashes when invoked from an exception
  165. handler, see https://sourceforge.net/p/mingw-w64/mailman/message/32421953/.
  166. This seems to be an unsolved problem in the MinGW64 runtime. So we
  167. use the GCC intrinsics instead. FIXME. */
  168. #define sigsetjmp(j,m) __builtin_setjmp(j)
  169. #else
  170. #define sigsetjmp(j,m) setjmp(j)
  171. #endif
  172. extern void w32_reset_stack_overflow_guard (void);
  173. #ifdef _MSC_VER
  174. #include <sys/timeb.h>
  175. #include <sys/stat.h>
  176. #include <signal.h>
  177. /* MSVC gets link-time errors without these redirections. */
  178. #define fstat(a, b) sys_fstat(a, b)
  179. #define stat(a, b) sys_stat(a, b)
  180. #define utime sys_utime
  181. #endif
  182. /* Calls that are emulated or shadowed. */
  183. #undef chdir
  184. #define chdir sys_chdir
  185. #undef chmod
  186. #define chmod sys_chmod
  187. #undef close
  188. #define close sys_close
  189. #undef creat
  190. #define creat sys_creat
  191. #define ctime sys_ctime
  192. #undef dup
  193. #define dup sys_dup
  194. #undef dup2
  195. #define dup2 sys_dup2
  196. #define fopen sys_fopen
  197. #define link sys_link
  198. #define localtime sys_localtime
  199. #undef read
  200. #define read sys_read
  201. #define rename sys_rename
  202. #define rmdir sys_rmdir
  203. #define select sys_select
  204. #define pselect sys_select
  205. #define sleep sys_sleep
  206. #define strerror sys_strerror
  207. #undef unlink
  208. #define unlink sys_unlink
  209. #undef opendir
  210. #define opendir sys_opendir
  211. #undef closedir
  212. #define closedir sys_closedir
  213. #undef readdir
  214. #define readdir sys_readdir
  215. #undef seekdir
  216. #define seekdir sys_seekdir
  217. /* This prototype is needed because some files include config.h
  218. _after_ the standard headers, so sys_unlink gets no prototype from
  219. stdio.h or io.h. */
  220. extern int sys_unlink (const char *);
  221. #undef write
  222. #define write sys_write
  223. #undef umask
  224. #define umask sys_umask
  225. extern int sys_umask (int);
  226. /* Subprocess calls that are emulated. */
  227. #define spawnve sys_spawnve
  228. #define kill sys_kill
  229. #define signal sys_signal
  230. /* Internal signals. */
  231. #define emacs_raise(sig) emacs_abort()
  232. /* termcap.c calls that are emulated. */
  233. #define tputs sys_tputs
  234. #define tgetstr sys_tgetstr
  235. /* cm.c calls that are emulated. */
  236. #define chcheckmagic sys_chcheckmagic
  237. #define cmcostinit sys_cmcostinit
  238. #define cmgoto sys_cmgoto
  239. #define cmputc sys_cmputc
  240. #define Wcm_clear sys_Wcm_clear
  241. #endif /* emacs */
  242. /* Used both in Emacs, in lib-src, and in Gnulib. */
  243. #undef open
  244. #define open sys_open
  245. /* Map to MSVC names. */
  246. #define execlp _execlp
  247. #define execvp _execvp
  248. #include <stdint.h> /* for intptr_t */
  249. extern intptr_t _execvp (const char *, char **);
  250. #ifdef MINGW_W64
  251. /* GCC 6 has a builtin execve with the prototype shown below. MinGW64
  252. changed the prototype in its process.h to match that, although the
  253. library function still calls _execve, which still returns intptr_t.
  254. However, using the prototype with intptr_t causes GCC to emit
  255. warnings. Fortunately, execve is not used in the MinGW build, but
  256. the code that references it is still compiled. */
  257. extern int execve (const char *, char * const *, char * const *);
  258. #else
  259. extern intptr_t execve (const char *, char * const *, char * const *);
  260. #endif
  261. #define fdatasync _commit
  262. #define fdopen _fdopen
  263. #define fsync _commit
  264. #define ftruncate _chsize
  265. #define getpid _getpid
  266. #ifdef _MSC_VER
  267. typedef int pid_t;
  268. #define snprintf _snprintf
  269. #define strtoll _strtoi64
  270. #define copysign _copysign
  271. #endif
  272. #define isatty _isatty
  273. #define _longjmp longjmp
  274. /* MinGW64 defines lseek to invoke lseek64. */
  275. #ifndef lseek
  276. #define lseek _lseek
  277. #endif
  278. #define popen _popen
  279. #define pclose _pclose
  280. #define strdup _strdup
  281. #define strupr _strupr
  282. #define strnicmp _strnicmp
  283. #define stricmp _stricmp
  284. #define tzset _tzset
  285. /* We cannot include system header process.h, since there's src/process.h. */
  286. int _getpid (void);
  287. /* Include time.h before redirecting tzname, since MSVC's time.h
  288. defines _tzname to call a function, but also declares tzname a
  289. 2-element array. Having the redirection before including the
  290. header thus has the effect of declaring a function that returns an
  291. array, and triggers an error message. */
  292. #include <time.h>
  293. #define tzname _tzname
  294. /* Required for functions in lib/time_r.c, since we don't use lib/time.h. */
  295. extern struct tm *gmtime_r (time_t const * restrict, struct tm * restrict);
  296. extern struct tm *localtime_r (time_t const * restrict, struct tm * restrict);
  297. #ifdef _MSC_VER
  298. /* This is hacky, but is necessary to avoid warnings about macro
  299. redefinitions using the MSVC compilers, since, when __STDC__ is
  300. undefined or zero, those compilers declare functions like fileno,
  301. lseek, and chdir, for which we defined macros above. */
  302. #ifndef __STDC__
  303. #define __STDC__ 1
  304. #define MUST_UNDEF__STDC__
  305. #endif
  306. #include <direct.h>
  307. #include <io.h>
  308. #include <stdio.h>
  309. #ifdef MUST_UNDEF__STDC__
  310. #undef __STDC__
  311. #undef MUST_UNDEF__STDC__
  312. #endif
  313. #else /* !_MSC_VER */
  314. #include <direct.h>
  315. #include <io.h>
  316. #include <stdio.h>
  317. #endif /* !_MSC_VER */
  318. #ifndef fileno
  319. #define fileno _fileno
  320. #endif
  321. /* Defines that we need that aren't in the standard signal.h. */
  322. #define SIGHUP 1 /* Hang up */
  323. #define SIGQUIT 3 /* Quit process */
  324. #define SIGTRAP 5 /* Trace trap */
  325. #define SIGKILL 9 /* Die, die die */
  326. #define SIGPIPE 13 /* Write on pipe with no readers */
  327. #define SIGALRM 14 /* Alarm */
  328. #define SIGCHLD 18 /* Death of child */
  329. #define SIGPROF 19 /* Profiling */
  330. #ifndef NSIG
  331. #define NSIG 23
  332. #endif
  333. #ifndef ENOTSUP
  334. #define ENOTSUP ENOSYS
  335. #endif
  336. /* In case lib/errno.h is not used. */
  337. #ifndef EOPNOTSUPP
  338. #define EOPNOTSUPP 130
  339. #endif
  340. #ifdef _MSC_VER
  341. typedef int sigset_t;
  342. typedef int ssize_t;
  343. #endif
  344. #ifdef MINGW_W64
  345. #ifndef _POSIX
  346. typedef _sigset_t sigset_t;
  347. #endif
  348. #endif
  349. typedef void (_CALLBACK_ *signal_handler) (int);
  350. extern signal_handler sys_signal (int, signal_handler);
  351. struct sigaction {
  352. int sa_flags;
  353. void (_CALLBACK_ *sa_handler)(int);
  354. sigset_t sa_mask;
  355. };
  356. #define SA_RESTART 0
  357. #define SIG_BLOCK 1
  358. #define SIG_SETMASK 2
  359. #define SIG_UNBLOCK 3
  360. extern int sigemptyset (sigset_t *);
  361. extern int sigaddset (sigset_t *, int);
  362. extern int sigfillset (sigset_t *);
  363. extern int sigprocmask (int, const sigset_t *, sigset_t *);
  364. /* MinGW64 defines pthread_sigmask as zero in its pthread_signal.h
  365. header, but we have an implementation for that function in w32proc.c. */
  366. #ifdef pthread_sigmask
  367. #undef pthread_sigmask
  368. #endif
  369. extern int pthread_sigmask (int, const sigset_t *, sigset_t *);
  370. extern int sigismember (const sigset_t *, int);
  371. extern int setpgrp (int, int);
  372. extern int sigaction (int, const struct sigaction *, struct sigaction *);
  373. extern int alarm (int);
  374. extern int sys_kill (pid_t, int);
  375. /* For integration with MSDOS support. */
  376. #define getdisk() (_getdrive () - 1)
  377. #ifdef emacs
  378. #define getdefdir(_drv, _buf) ((_buf[0] = (_drv + 'A' - 1), _buf[1] = ':', _buf[2] = '/', _buf[3] = 0), 1)
  379. #else
  380. #define getdefdir(_drv, _buf) _getdcwd (_drv, _buf, MAXPATHLEN)
  381. #endif
  382. #ifndef EMACS_CONFIGURATION
  383. extern char *get_emacs_configuration (void);
  384. extern char *get_emacs_configuration_options (void);
  385. #define EMACS_CONFIGURATION get_emacs_configuration ()
  386. #define EMACS_CONFIG_OPTIONS get_emacs_configuration_options ()
  387. #endif
  388. /* Define this so that winsock.h definitions don't get included with
  389. windows.h. For this to have proper effect, config.h must always be
  390. included before windows.h. */
  391. #define _WINSOCKAPI_ 1
  392. #define _WINSOCK_H
  393. /* Defines size_t and alloca (). */
  394. #include <stdlib.h>
  395. #include <sys/stat.h>
  396. #ifdef _MSC_VER
  397. #define alloca _alloca
  398. #else
  399. #include <malloc.h>
  400. #endif
  401. /* Needed in Emacs and in Gnulib. */
  402. /* This must be after including sys/stat.h, because we need mode_t. */
  403. #undef mkdir
  404. #define mkdir(d,f) sys_mkdir(d,f)
  405. int sys_mkdir (const char *, mode_t);
  406. #ifdef emacs
  407. typedef void * (* malloc_fn)(size_t);
  408. typedef void * (* realloc_fn)(void *, size_t);
  409. typedef void (* free_fn)(void *);
  410. extern void *malloc_before_dump(size_t);
  411. extern void *realloc_before_dump(void *, size_t);
  412. extern void free_before_dump(void *);
  413. extern void *malloc_after_dump(size_t);
  414. extern void *realloc_after_dump(void *, size_t);
  415. extern void free_after_dump(void *);
  416. extern void *malloc_after_dump_9x(size_t);
  417. extern void *realloc_after_dump_9x(void *, size_t);
  418. extern void free_after_dump_9x(void *);
  419. extern malloc_fn the_malloc_fn;
  420. extern realloc_fn the_realloc_fn;
  421. extern free_fn the_free_fn;
  422. #define malloc(size) (*the_malloc_fn)(size)
  423. #define free(ptr) (*the_free_fn)(ptr)
  424. #define realloc(ptr, size) (*the_realloc_fn)(ptr, size)
  425. #endif
  426. /* Define for those source files that do not include enough NT system files. */
  427. #ifndef NULL
  428. #ifdef __cplusplus
  429. #define NULL 0
  430. #else
  431. #define NULL ((void *)0)
  432. #endif
  433. #endif
  434. /* For proper declaration of environ. */
  435. #ifndef sys_nerr
  436. #define sys_nerr _sys_nerr
  437. #endif
  438. /* This must be after including stdlib.h, which defines putenv on MinGW. */
  439. #ifdef putenv
  440. # undef putenv
  441. #endif
  442. #define putenv sys_putenv
  443. extern int sys_putenv (char *);
  444. extern int getloadavg (double *, int);
  445. extern int getpagesize (void);
  446. extern void * memrchr (void const *, int, size_t);
  447. /* Declared here, since we don't use Gnulib's stdlib.h. */
  448. extern int mkostemp (char *, int);
  449. #if defined (__MINGW32__)
  450. /* Define to 1 if the system has the type `long long int'. */
  451. # ifndef HAVE_LONG_LONG_INT
  452. # define HAVE_LONG_LONG_INT 1
  453. # endif
  454. /* Define to 1 if the system has the type `unsigned long long int'. */
  455. # ifndef HAVE_UNSIGNED_LONG_LONG_INT
  456. # define HAVE_UNSIGNED_LONG_LONG_INT 1
  457. # endif
  458. #endif
  459. #ifdef _MSC_VER
  460. # if defined(_WIN64)
  461. typedef __int64 EMACS_INT;
  462. typedef unsigned __int64 EMACS_UINT;
  463. # define EMACS_INT_MAX LLONG_MAX
  464. # define PRIuMAX "llu"
  465. # define pI "ll"
  466. /* Fix a bug in MSVC headers : stdint.h */
  467. # define _INTPTR 2
  468. # elif defined(_WIN32)
  469. /* Temporarily disable wider-than-pointer integers until they're tested more.
  470. Build with CFLAGS='-DWIDE_EMACS_INT' to try them out. */
  471. # ifdef WIDE_EMACS_INT
  472. /* Use pre-C99-style 64-bit integers. */
  473. typedef __int64 EMACS_INT;
  474. typedef unsigned __int64 EMACS_UINT;
  475. # define EMACS_INT_MAX LLONG_MAX
  476. # define PRIuMAX "llu"
  477. # define pI "I64"
  478. # else
  479. typedef int EMACS_INT;
  480. typedef unsigned int EMACS_UINT;
  481. # define EMACS_INT_MAX LONG_MAX
  482. # define PRIuMAX "lu"
  483. # define pI "l"
  484. # endif
  485. # endif
  486. #endif
  487. /* We need a little extra space, see ../../lisp/loadup.el. */
  488. #define SYSTEM_PURESIZE_EXTRA 50000
  489. #define DATA_START get_data_start ()
  490. /* For unexec to work on Alpha systems, we need to put Emacs'
  491. initialized data into a separate section from the CRT initialized
  492. data (because the Alpha linker freely reorders data variables, even
  493. across libraries, so our data and the CRT data get intermingled).
  494. Starting with MSVC 5.0, we must also place the uninitialized data
  495. into its own section. VC5 intermingles uninitialized data from the CRT
  496. between Emacs' static uninitialized data and its public uninitialized
  497. data. A separate .bss section for Emacs groups both static and
  498. public uninitialized together.
  499. Note that unexw32.c relies on this fact, and must be modified
  500. accordingly if this section name is changed, or if this pragma is
  501. removed. Also, obviously, all files that define initialized data
  502. must include config.h to pick up this pragma. */
  503. /* Names must be < 8 bytes. */
  504. #ifdef _MSC_VER
  505. #pragma data_seg("EMDATA")
  506. #pragma bss_seg("EMBSS")
  507. #endif
  508. /* #define FULL_DEBUG */
  509. /* #define EMACSDEBUG */
  510. #ifdef _MSC_VER
  511. #if _MSC_VER >= 800 && !defined(__cplusplus)
  512. /* Unnamed type definition in parentheses.
  513. A structure, union, or enumerated type with no name is defined in a
  514. parenthetical expression. The type definition is meaningless. */
  515. #pragma warning(disable:4116)
  516. /* 'argument' : conversion from 'type1' to 'type2', possible loss of
  517. data A floating point type was converted to an integer type. A
  518. possible loss of data may have occurred. */
  519. #pragma warning(disable:4244)
  520. /* Negative integral constant converted to unsigned type.
  521. An expression converts a negative integer constant to an unsigned type.
  522. The result of the expression is probably meaningless. */
  523. #pragma warning(disable:4308)
  524. #endif
  525. #endif
  526. /* Event name for when emacsclient starts the Emacs daemon on Windows. */
  527. #define W32_DAEMON_EVENT "EmacsServerEvent"
  528. /* ============================================================ */