#endif
#if defined(WIN32)
+# ifndef WIN32_LEAN_AND_MEAN
+# define WIN32_LEAN_AND_MEAN 1
+# endif
+# define NOSERVICE
# include <windows.h>
# include "de_win.h"
#elif defined(MACINTOSH)
* This was written by a nonexpert windows programmer.
*/
-#include "windows.h"
+#ifndef WIN32_LEAN_AND_MEAN
+# define WIN32_LEAN_AND_MEAN 1
+#endif
+#define NOSERVICE
+#include <windows.h>
+
#include "gc.h"
#include "cord.h"
#include "de_cmds.h"
#include "private/msvc_dbg.h"
#include "gc.h"
-#define WIN32_LEAN_AND_MEAN
+#ifndef WIN32_LEAN_AND_MEAN
+# define WIN32_LEAN_AND_MEAN 1
+#endif
+#define NOSERVICE
#include <windows.h>
#pragma pack(push, 8)
#ifdef GC_PTHREADS
# include <pthread.h>
#else
+# ifndef WIN32_LEAN_AND_MEAN
+# define WIN32_LEAN_AND_MEAN 1
+# endif
+# define NOSERVICE
# include <windows.h>
-#endif
+#endif /* !GC_PTHREADS */
#include <stdlib.h>
#include <stdio.h>
#ifdef GC_PTHREADS
# include <pthread.h>
#else
+# ifndef WIN32_LEAN_AND_MEAN
+# define WIN32_LEAN_AND_MEAN 1
+# endif
+# define NOSERVICE
# include <windows.h>
-#endif
+#endif /* !GC_PTHREADS */
#if defined(__HAIKU__)
# include <errno.h>
#include "private/gc_priv.h" /* For output, locking, MIN_WORDS, */
/* some statistics and gcconfig.h. */
-# if defined(MSWIN32) || defined(MSWINCE)
-# include <windows.h>
+#if defined(MSWIN32) || defined(MSWINCE)
+# ifndef WIN32_LEAN_AND_MEAN
+# define WIN32_LEAN_AND_MEAN 1
# endif
+# define NOSERVICE
+# include <windows.h>
+#endif /* MSWIN32 || MSWINCE */
#ifdef GC_PRINT_VERBOSE_STATS
# define print_stats VERBOSE
}
#ifdef MSWIN32
+# ifndef WIN32_LEAN_AND_MEAN
+# define WIN32_LEAN_AND_MEAN 1
+# endif
+# define NOSERVICE
# include <windows.h>
#endif
#ifdef GC_PTHREADS
# include <pthread.h>
#else
+# ifndef WIN32_LEAN_AND_MEAN
+# define WIN32_LEAN_AND_MEAN 1
+# endif
+# define NOSERVICE
# include <windows.h>
-#endif
+#endif /* !GC_PTHREADS */
#include <stdio.h>
return((int)(result[0]));
}
#elif defined(MSWIN32) || defined(MSWINCE) || defined(CYGWIN32)
+# ifndef WIN32_LEAN_AND_MEAN
+# define WIN32_LEAN_AND_MEAN 1
+# endif
+# define NOSERVICE
# include <windows.h>
+
int getpagesize(void)
{
SYSTEM_INFO sysinfo;