Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2010-08-30 05:57:37 +0400
committerChristopher Faylor <me@cgf.cx>2010-08-30 05:57:37 +0400
commit92117cb21f54115367528220dbb85bed8d7b72b4 (patch)
tree33bc5aea3bb9bd4f638268ad272406a3401bf43e /winsup/cygwin/lib
parent552bc28f4650ccd83757ebee28e24ca8237829e5 (diff)
* winlean.h: New file.
* automode.c: Use "winlean.h". * binmode.c: Ditto. * gmon.c: Ditto. * textmode.c: Ditto. * textreadmode.c: Ditto. * winsup.h: Ditto. * lib/cygwin_attach_dll.c: Ditto. * lib/dll_main.cc: Ditto. * profile.c: Ditto. * crt0.c: Ditto. Cleanup ancient cruft. Add dummy calls to cygwin_premain*. * include/sys/cygwin.h: Remove old stuff. Move premain declarations nearer to other cygwin-specific function declarations. * globals.cc: Add comment.
Diffstat (limited to 'winsup/cygwin/lib')
-rw-r--r--winsup/cygwin/lib/cygwin_attach_dll.c2
-rw-r--r--winsup/cygwin/lib/dll_main.cc5
2 files changed, 3 insertions, 4 deletions
diff --git a/winsup/cygwin/lib/cygwin_attach_dll.c b/winsup/cygwin/lib/cygwin_attach_dll.c
index 49bb9256d..81493a41e 100644
--- a/winsup/cygwin/lib/cygwin_attach_dll.c
+++ b/winsup/cygwin/lib/cygwin_attach_dll.c
@@ -9,7 +9,7 @@ Cygwin license. Please consult the file "CYGWIN_LICENSE" for
details. */
#undef __INSIDE_CYGWIN__
-#include <windows.h>
+#include "winlean.h"
#include <time.h> /* Needed since call to sys/time.h via sys/cygwin.h
complains otherwise */
#include <sys/cygwin.h>
diff --git a/winsup/cygwin/lib/dll_main.cc b/winsup/cygwin/lib/dll_main.cc
index 7f977f689..558c3485b 100644
--- a/winsup/cygwin/lib/dll_main.cc
+++ b/winsup/cygwin/lib/dll_main.cc
@@ -1,14 +1,13 @@
/* dll_main.cc: Provide the DllMain stub that the user can override.
- Copyright 1998, 2000, 2001, 2009 Red Hat, Inc.
+ Copyright 1998, 2000, 2001, 2009, 2010 Red Hat, Inc.
This software is a copyrighted work licensed under the terms of the
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
details. */
-#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
+#include "winlean.h"
extern "C"
BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason,