makefiles: Define __WINESRC__ when building programs.

This commit is contained in:
Alexandre Julliard 2012-01-23 12:16:36 +01:00
parent c0f65cc99b
commit c9eee73450
34 changed files with 42 additions and 19 deletions

View File

@ -10,7 +10,7 @@
#
DLLFLAGS = @DLLFLAGS@
DEFS = -DWINE_STRICT_PROTOTYPES -DWINE_NO_UNICODE_MACROS $(EXTRADEFS)
DEFS = -D__WINESRC__ $(EXTRADEFS)
ALL_LIBS = $(DELAYIMPORTS:%=-l%) $(IMPORTS:%=-l%) $(EXTRALIBS) -lwine $(LIBPORT) $(LDFLAGS) $(LIBS)
INSTALLDIRS = $(DESTDIR)$(bindir) $(DESTDIR)$(dlldir) $(DESTDIR)$(fakedlldir) $(DESTDIR)$(mandir)/man$(prog_manext)

View File

@ -27,6 +27,7 @@
#include "windows.h"
#include "commdlg.h"
#include "shellapi.h"
#include "main.h"
#include "winclock.h"

View File

@ -26,7 +26,9 @@
*/
#include "config.h"
#include <time.h>
#include "wcmd.h"
#include "shellapi.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(cmd);

View File

@ -27,10 +27,10 @@
* TODO: multiple monitor support
*/
#include "windows.h"
#include "shellapi.h"
#include "wine/unicode.h"
#include <windows.h>
#include <wine/debug.h>
#include "wine/debug.h"
#include "explorer_private.h"
#include "wine/list.h"

View File

@ -26,6 +26,7 @@
#define OEMRESOURCE
#include <windows.h>
#include <rpc.h>
#include <wine/debug.h>
#include "explorer_private.h"

View File

@ -30,6 +30,7 @@
#include <initguid.h>
#include <windows.h>
#include <shellapi.h>
#include <shobjidl.h>
#include <shlobj.h>
#include <shlwapi.h>

View File

@ -24,6 +24,7 @@
#define _WIN32_IE 0x500
#include <windows.h>
#include <commctrl.h>
#include <shellapi.h>
#include <wine/debug.h>
#include <wine/list.h>

View File

@ -20,6 +20,7 @@
#include <windows.h>
#include <advpub.h>
#include <ole2.h>
#include <rpcproxy.h>
#include "wine/unicode.h"

View File

@ -23,6 +23,7 @@
#include <windows.h>
#include <msi.h>
#include <winsvc.h>
#include <objbase.h>
#include <stdio.h>

View File

@ -20,8 +20,9 @@
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdio.h>
#include <windows.h>
#include <winsvc.h>
#include "wine/debug.h"

View File

@ -25,6 +25,7 @@
#include <assert.h>
#include <stdio.h>
#include <windows.h>
#include <shellapi.h>
#include <commdlg.h>
#include <shlwapi.h>
#include <winternl.h>

View File

@ -22,9 +22,11 @@
*
*/
#include <windows.h>
#include <shlwapi.h>
#include <stdio.h>
#include <windows.h>
#include <commdlg.h>
#include <shellapi.h>
#include <shlwapi.h>
#include "main.h"
#include "dialog.h"

View File

@ -19,6 +19,8 @@
*/
#include "main.h"
#include "commdlg.h"
#include "shellapi.h"
#include "wine/unicode.h"
GLOBALS globals;

View File

@ -19,6 +19,7 @@
*/
#include "main.h"
#include "commdlg.h"
#include "wine/debug.h"
#include "wine/unicode.h"

View File

@ -19,6 +19,7 @@
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include "winsvc.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(plugplay);

View File

@ -19,6 +19,7 @@
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include "winsvc.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(fontcache);

View File

@ -25,6 +25,7 @@
#define OEMRESOURCE
#include "windows.h"
#include "shellapi.h"
#include "progman.h"
GLOBALS Globals;

View File

@ -25,6 +25,7 @@
#include <string.h>
#include <stdlib.h>
#include <windows.h>
#include <winsvc.h>
WINE_DEFAULT_DEBUG_CHANNEL(sc);

View File

@ -22,6 +22,7 @@
#include <stdarg.h>
#include <windows.h>
#include <winsvc.h>
#include "wine/unicode.h"
#include "wine/debug.h"

View File

@ -19,6 +19,7 @@
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <winsvc.h>
#include "wine/debug.h"

View File

@ -20,11 +20,11 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <windows.h>
#include <winuser.h>
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <shlobj.h>
#include <shellapi.h>
#include <wine/unicode.h>
#include <wine/debug.h>

View File

@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdlib.h>
#include <windows.h>
#include <psapi.h>
#include <wine/unicode.h>

View File

@ -19,6 +19,7 @@
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <winsvc.h>
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(termsv);

View File

@ -45,6 +45,7 @@
#include <windows.h>
#include <shlwapi.h>
#include <urlmon.h>
#include <ddeml.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -41,6 +41,8 @@
#define COBJMACROS
#include <windows.h>
#include <commdlg.h>
#include <shellapi.h>
#include <uxtheme.h>
#include <tmschema.h>
#include <shlobj.h>

View File

@ -55,6 +55,8 @@
#include "wine/library.h"
#include "wine/debug.h"
#undef ERR
#define ERR (-1)
WINE_DEFAULT_DEBUG_CHANNEL(curses);

View File

@ -27,9 +27,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include "debugger.h"
#include "wine/exception.h"

View File

@ -27,10 +27,7 @@
#include <string.h>
#include <stdarg.h>
#ifndef HAVE_UNISTD_H
#define YY_NO_UNISTD_H
#endif
#include "debugger.h"
#include "dbg.tab.h"

View File

@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <winsock.h>
#include <winsock2.h>
#include <wininet.h>
#include <stdio.h>
#include <errno.h>

View File

@ -27,10 +27,7 @@
#include <assert.h>
#include <stdarg.h>
#ifndef HAVE_UNISTD_H
#define YY_NO_UNISTD_H
#endif
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"

View File

@ -20,6 +20,7 @@
#include "config.h"
#include "windows.h"
#include "shellapi.h"
int PASCAL WinMain (HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
{

View File

@ -21,6 +21,7 @@
#include <windows.h>
#include <richedit.h>
#include <commctrl.h>
#include <commdlg.h>
#include "wordpad.h"

View File

@ -24,6 +24,7 @@
#include <winbase.h>
#include <winreg.h>
#include <ole2.h>
#include <shellapi.h>
#include <activscp.h>
#include <initguid.h>

View File

@ -41,6 +41,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <wine/debug.h>
#include <wine/unicode.h>