Remove some unneeded __WINESRC__ tests from the headers.

Miscellaneous cleanups and fixes.
oldstable
Dimitrie O. Paun 2003-08-27 02:07:02 +00:00 committed by Alexandre Julliard
parent 4ebc806743
commit 4ff79add63
7 changed files with 32 additions and 36 deletions

View File

@ -89,7 +89,7 @@ HRESULT WINAPI DPNHPAST_DllCanUnloadNow(void)
*
*
*/
HRESULT WINAPI DPNHPAST_DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID FAR)
HRESULT WINAPI DPNHPAST_DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
{
FIXME(":stub\n");
return E_FAIL;

View File

@ -38,7 +38,7 @@ DEFINE_GUID(DSPROPSETID_I3DL2_ListenerProperties,0xDA0F0520,0x300A,0x11D3,0x8A,0
DEFINE_GUID(DSPROPSETID_I3DL2_BufferProperties,0xDA0F0521,0x300A,0x11D3,0x8A,0x2B,0x00,0x60,0x97,0x0D,0xB0,0x11);
DEFINE_GUID(DSPROPSETID_ZOOMFX_BufferProperties,0xCD5368E0,0x3450,0x11D3,0x8B,0x6E,0x00,0x10,0x5A,0x9B,0x7B,0xBC);
typedef HRESULT (CALLBACK * MYPROC)(REFCLSID, REFIID, LPVOID FAR*);
typedef HRESULT (CALLBACK * MYPROC)(REFCLSID, REFIID, LPVOID *);
BOOL CALLBACK callback(PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_DATA data, LPVOID context)
{

View File

@ -802,10 +802,10 @@ void WINAPI wine_glDepthMask( GLboolean flag ) {
/***********************************************************************
* glDepthRange (OPENGL32.@)
*/
void WINAPI wine_glDepthRange( GLclampd near, GLclampd far ) {
TRACE("(%f, %f)\n", near, far );
void WINAPI wine_glDepthRange( GLclampd nearParm, GLclampd farParm ) {
TRACE("(%f, %f)\n", nearParm, farParm );
ENTER_GL();
glDepthRange( near, far );
glDepthRange( nearParm, farParm );
LEAVE_GL();
}

View File

@ -54,10 +54,12 @@
#include "windef.h"
#undef FAR
#define FAR
#define huge
#define WIN32
#define _WIN32
#undef __declspec
#define __declspec(spec)
/****************************************************************************

View File

@ -21,10 +21,6 @@
#ifndef __WINE_WINDEF_H
#define __WINE_WINDEF_H
#ifdef __WINESRC__
# undef UNICODE
#endif /* __WINESRC__ */
#ifndef WINVER
#define WINVER 0x0500
#endif
@ -67,61 +63,63 @@ extern "C" {
# endif
#endif /* __stdcall */
#ifndef __WINESRC__
#ifdef __WINESRC__
#define __ONLY_IN_WINELIB(x) do_not_use_this_in_wine
#else
#define __ONLY_IN_WINELIB(x) x
#endif
#ifndef pascal
#define pascal __stdcall
#define pascal __ONLY_IN_WINELIB(__stdcall)
#endif
#ifndef _pascal
#define _pascal __stdcall
#define _pascal __ONLY_IN_WINELIB(__stdcall)
#endif
#ifndef _stdcall
#define _stdcall __stdcall
#define _stdcall __ONLY_IN_WINELIB(__stdcall)
#endif
#ifndef _fastcall
#define _fastcall __stdcall
#define _fastcall __ONLY_IN_WINELIB(__stdcall)
#endif
#ifndef __fastcall
#define __fastcall __stdcall
#define __fastcall __ONLY_IN_WINELIB(__stdcall)
#endif
#ifndef __export
#define __export __stdcall
#define __export __ONLY_IN_WINELIB(__stdcall)
#endif
#ifndef cdecl
#define cdecl __cdecl
#define cdecl __ONLY_IN_WINELIB(__cdecl)
#endif
#ifndef _cdecl
#define _cdecl __cdecl
#define _cdecl __ONLY_IN_WINELIB(__cdecl)
#endif
#ifndef near
#define near
#define near __ONLY_IN_WINELIB()
#endif
#ifndef far
#define far
#define far __ONLY_IN_WINELIB()
#endif
#ifndef _near
#define _near
#define _near __ONLY_IN_WINELIB()
#endif
#ifndef _far
#define _far
#define _far __ONLY_IN_WINELIB()
#endif
#ifndef NEAR
#define NEAR
#define NEAR __ONLY_IN_WINELIB()
#endif
#ifndef FAR
#define FAR
#define FAR __ONLY_IN_WINELIB()
#endif
#ifndef _declspec
#define _declspec(x)
#define _declspec(x) __ONLY_IN_WINELIB()
#endif
#ifndef __declspec
#define __declspec(x)
#define __declspec(x) __ONLY_IN_WINELIB()
#endif
#endif /* __WINESRC__ */
#define CALLBACK __stdcall
#define WINAPI __stdcall
#define APIPRIVATE __stdcall
@ -184,7 +182,6 @@ typedef double DATE;
#include "winnt.h"
/* Macros to map Winelib names to the correct implementation name */
/* depending on __WINESRC__ and UNICODE macros. */
/* Note that Winelib is purely Win32. */
#ifdef __WINESRC__

View File

@ -263,7 +263,7 @@ typedef WCHAR OLECHAR;
typedef [string] OLECHAR *LPOLESTR;
typedef [string] const OLECHAR *LPCOLESTR;
cpp_quote("#ifndef __WINESRC__")
cpp_quote("#define OLESTR(str) WINE_UNICODE_TEXT(str)")
cpp_quote("#define OLESTR(str) L##str")
cpp_quote("#endif")
/* from Wine's pre-WIDL wtypes.h */

View File

@ -56,9 +56,6 @@ struct FlagTableEntry {
unsigned long ft_bit;
};
#if 0
#define FAR
#endif
#define EXPORT
static char menuName[] = "CmdlgtstMenu";
@ -288,9 +285,9 @@ void paintMainWindow(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam)
/* now draw a couple of lines, just for giggles. */
MoveToEx(ps.hdc, rect.left, rect.top, (POINT FAR *) 0);
MoveToEx(ps.hdc, rect.left, rect.top, (POINT *) 0);
LineTo(ps.hdc, rect.right, rect.bottom);
MoveToEx(ps.hdc, rect.left, rect.bottom, (POINT FAR *) 0);
MoveToEx(ps.hdc, rect.left, rect.bottom, (POINT *) 0);
LineTo(ps.hdc, rect.right, rect.top);
/* draw some text */
@ -722,7 +719,7 @@ LRESULT CALLBACK EXPORT mainWindowDispatcher(
{
if(uMsg == findMessageId) {
FINDREPLACE FAR* lpfr = (FINDREPLACE FAR*) lParam;
FINDREPLACE * lpfr = (FINDREPLACE *) lParam;
if(lpfr->Flags & FR_DIALOGTERM) {
MessageBox(hWnd, "User closing us down.", "Down", MB_OK);
findDialogBox = 0;