From 7d665672539be9dba5c91765bd82cf39d8e0caac Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Mon, 16 Jan 2006 20:41:34 +0100 Subject: [PATCH] programs: Use WIN32_LEAN_AND_MEAN in some more places. --- programs/control/control.c | 4 +++- programs/eject/eject.c | 2 ++ programs/expand/expand.c | 2 ++ programs/hh/main.c | 2 ++ programs/msiexec/msiexec.c | 2 ++ programs/progman/dialog.c | 2 ++ programs/progman/group.c | 2 ++ programs/progman/grpfile.c | 2 ++ programs/progman/program.c | 2 ++ programs/progman/string.c | 2 ++ programs/wcmd/builtins.c | 2 ++ programs/wcmd/directory.c | 2 ++ programs/winecfg/appdefaults.c | 1 + programs/winecfg/libraries.c | 1 + programs/winecfg/properties.c | 2 ++ programs/winepath/winepath.c | 2 ++ 16 files changed, 31 insertions(+), 1 deletion(-) diff --git a/programs/control/control.c b/programs/control/control.c index 15a7bc43dfc..49f514d4d8e 100644 --- a/programs/control/control.c +++ b/programs/control/control.c @@ -17,6 +17,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define WIN32_LEAN_AND_MEAN + #include #include #include @@ -27,7 +29,7 @@ extern void WINAPI Control_RunDLL(HWND hWnd, HINSTANCE hInst, LPCSTR cmd, DWORD static void launch(const char *what) { Control_RunDLL(GetDesktopWindow(), 0, what, SW_SHOW); - exit(0); + ExitProcess(0); } int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpszCmdLine, INT nCmdShow) diff --git a/programs/eject/eject.c b/programs/eject/eject.c index 761fdfbf38f..bf3d514eb92 100644 --- a/programs/eject/eject.c +++ b/programs/eject/eject.c @@ -18,6 +18,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define WIN32_LEAN_AND_MEAN + #include "config.h" #include diff --git a/programs/expand/expand.c b/programs/expand/expand.c index 6437246ad00..a2f5e88965d 100644 --- a/programs/expand/expand.c +++ b/programs/expand/expand.c @@ -17,6 +17,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define WIN32_LEAN_AND_MEAN + #include #include #include diff --git a/programs/hh/main.c b/programs/hh/main.c index 494c6cea537..51a5b8b8b62 100644 --- a/programs/hh/main.c +++ b/programs/hh/main.c @@ -16,6 +16,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define WIN32_LEAN_AND_MEAN + #include typedef int WINAPI DOWINMAIN(HMODULE hMod, LPSTR cmdline); diff --git a/programs/msiexec/msiexec.c b/programs/msiexec/msiexec.c index cff4dda7efe..7ec88317724 100644 --- a/programs/msiexec/msiexec.c +++ b/programs/msiexec/msiexec.c @@ -19,6 +19,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define WIN32_LEAN_AND_MEAN + #include #include #include diff --git a/programs/progman/dialog.c b/programs/progman/dialog.c index 0aea7228be4..fbfdc230076 100644 --- a/programs/progman/dialog.c +++ b/programs/progman/dialog.c @@ -20,6 +20,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define WIN32_LEAN_AND_MEAN + #include "windows.h" #include "commdlg.h" #include "progman.h" diff --git a/programs/progman/group.c b/programs/progman/group.c index 211776d8cb0..2f8c5fccfa5 100644 --- a/programs/progman/group.c +++ b/programs/progman/group.c @@ -18,6 +18,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define WIN32_LEAN_AND_MEAN + #include #include #include "windows.h" diff --git a/programs/progman/grpfile.c b/programs/progman/grpfile.c index 024d40289f6..8174308588e 100644 --- a/programs/progman/grpfile.c +++ b/programs/progman/grpfile.c @@ -19,6 +19,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define WIN32_LEAN_AND_MEAN + #include "windows.h" #include "wine/winuser16.h" #include "progman.h" diff --git a/programs/progman/program.c b/programs/progman/program.c index 9ad4727d654..783d41576ac 100644 --- a/programs/progman/program.c +++ b/programs/progman/program.c @@ -18,6 +18,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define WIN32_LEAN_AND_MEAN + #include #include "windows.h" #include "windowsx.h" diff --git a/programs/progman/string.c b/programs/progman/string.c index ea0a8dcccd2..97603881e60 100644 --- a/programs/progman/string.c +++ b/programs/progman/string.c @@ -19,6 +19,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define WIN32_LEAN_AND_MEAN + #include "windows.h" #include "progman.h" diff --git a/programs/wcmd/builtins.c b/programs/wcmd/builtins.c index a47bc0a417e..addb3c7d6fe 100644 --- a/programs/wcmd/builtins.c +++ b/programs/wcmd/builtins.c @@ -32,6 +32,8 @@ * - Messages etc need international support */ +#define WIN32_LEAN_AND_MEAN + #include "wcmd.h" void WCMD_execute (char *orig_command, char *parameter, char *substitution); diff --git a/programs/wcmd/directory.c b/programs/wcmd/directory.c index 8046500d702..4820f47f241 100644 --- a/programs/wcmd/directory.c +++ b/programs/wcmd/directory.c @@ -27,6 +27,8 @@ #define NONAMELESSUNION #define NONAMELESSSTRUCT +#define WIN32_LEAN_AND_MEAN + #include "wcmd.h" int WCMD_dir_sort (const void *a, const void *b); diff --git a/programs/winecfg/appdefaults.c b/programs/winecfg/appdefaults.c index 235f0d84194..681d21cf312 100644 --- a/programs/winecfg/appdefaults.c +++ b/programs/winecfg/appdefaults.c @@ -21,6 +21,7 @@ * */ +#define WIN32_LEAN_AND_MEAN #define NONAMELESSUNION #include #include diff --git a/programs/winecfg/libraries.c b/programs/winecfg/libraries.c index c0444337e0e..4ae431d39e0 100644 --- a/programs/winecfg/libraries.c +++ b/programs/winecfg/libraries.c @@ -21,6 +21,7 @@ */ #define NONAMELESSUNION +#define WIN32_LEAN_AND_MEAN #include #include #include diff --git a/programs/winecfg/properties.c b/programs/winecfg/properties.c index 7f63a6f71be..482448c340f 100644 --- a/programs/winecfg/properties.c +++ b/programs/winecfg/properties.c @@ -20,6 +20,8 @@ * */ +#define WIN32_LEAN_AND_MEAN + #include #include "properties.h" diff --git a/programs/winepath/winepath.c b/programs/winepath/winepath.c index f5886c2e85e..a16831fbdb2 100644 --- a/programs/winepath/winepath.c +++ b/programs/winepath/winepath.c @@ -20,6 +20,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define WIN32_LEAN_AND_MEAN + #include "config.h" #include