summaryrefslogtreecommitdiff
path: root/src/w32.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2016-10-10 19:22:40 +0300
committerEli Zaretskii <eliz@gnu.org>2016-10-10 19:22:40 +0300
commitdb677f5dfedc0a665211d1113251e77a01e5d5e3 (patch)
treece9e0e8fd3d0f1b4b55205c7c9e3f519a23dbf5c /src/w32.c
parentfd45b3f604cd52c17bd32fe27c425bc79545f52c (diff)
downloademacs-db677f5dfedc0a665211d1113251e77a01e5d5e3.tar.gz
Fix compilation warnings on MS-Windows
* src/w32.c (_ANONYMOUS_UNION, _ANONYMOUS_STRUCT): Remove definitions of these macros, which seem to be unneeded and cause compiler warnings. * src/fileio.c (NOMINMAX): Avoid compiler warnings about unused macros. * src/firstfile.c (dummy_main_reference): Rename from 'dummy' and make it external, to avoid compiler warning.
Diffstat (limited to 'src/w32.c')
-rw-r--r--src/w32.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/w32.c b/src/w32.c
index 517e286eaa9..ad7d94a21d2 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -94,13 +94,6 @@ extern void dynlib_reset_last_error (void);
#include <pwd.h>
#include <grp.h>
-/* MinGW64 defines these in its _mingw.h. */
-#ifndef _ANONYMOUS_UNION
-# define _ANONYMOUS_UNION
-#endif
-#ifndef _ANONYMOUS_STRUCT
-# define _ANONYMOUS_STRUCT
-#endif
#include <windows.h>
/* Some versions of compiler define MEMORYSTATUSEX, some don't, so we
use a different name to avoid compilation problems. */
@@ -282,8 +275,6 @@ extern int sys_select (int, SELECT_TYPE *, SELECT_TYPE *, SELECT_TYPE *,
struct timespec *, void *);
extern int sys_dup (int);
-
-
/* Initialization states.