mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-19 15:32:10 +08:00
cguid.h, commctrl.h, commdlg.h, cpl.h, cplext.h, custcntl.h, dbt.h, dde.h, ddeml.h, dlgs.h, excpt.h, httpext.h, imagehlp.h, imm.h, initguid.h, intshcut.h, ipexport.h, iphlpapi.h, ipifcons.h, iprtrmib.h, iptypes.h, isguids.h, largeint.h, lm.h, lmaccess.h, lmalert.h, lmapibuf.h, lmat.h, lmaudit.h, lmbrowsr.h, lmchdev.h, lmconfig.h, lmcons.h, lmerr.h, lmerrlog.h, lmmsg.h, lmremutl.h, lmrepl.h, lmserver.h, lmshare.h, lmsname.h, lmstats.h, lmsvc.h, lmuse.h, lmuseflg.h, lmwksta.h, lzexpand.h, mapi.h, mciavi.h, mcx.h, mmsystem.h, mswsock.h, nb30.h, nddeapi.h, nspapi.h, ntdef.h, ntsecapi.h, ntsecpkg.h, oaidl.h, objbase.h, objfwd.h, objidl.h, odbcinst.h, ole.h, ole2.h, ole2ver.h, oleauto.h, olectl.h, olectlid.h, oledlg.h, oleidl.h, pbt.h, prsht.h, psapi.h, rapi.h, ras.h, raserror.h, rassapi.h, regstr.h, richedit.h, richole.h, rpc.h, rpcdce.h, rpcdce2.h, rpcdcep.h, rpcndr.h, rpcnsi.h, rpcnsip.h, rpcnterr.h, rpcproxy.h, schannel.h, schnlsp.h, scrnsave.h, security.h, setupapi.h, shellapi.h, shlguid.h, shlobj.h, sql.h, sqlext.h, sqltypes.h, sqlucode.h, sspi.h, subauth.h, tlhelp32.h, unknwn.h, userenv.h, w32api.h, winbase.h, wincon.h, wincrypt.h, windef.h, windows.h, windowsx.h, winerror.h, wingdi.h, wininet.h, winioctl.h, winnetwk.h, winnls.h, winnt.h, winperf.h, winreg.h, winresrc.h, winsock.h, winsock2.h, winspool.h, winsvc.h, winuser.h, winver.h, ws2tcpip.h, wsnetbs.h, wtypes.h, zmouse.h: Add #pragma GCC system_header if __GNUC__ >= 3. * include/mapi.h: Change header guard name to _MAPI_H for consistency.
241 lines
4.9 KiB
C
241 lines
4.9 KiB
C
#ifndef _WINDEF_H
|
|
#define _WINDEF_H
|
|
#if __GNUC__ >=3
|
|
#pragma GCC system_header
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifndef WINVER
|
|
#define WINVER 0x0400
|
|
#endif
|
|
#ifndef _WIN32_WINNT
|
|
#define _WIN32_WINNT WINVER
|
|
#endif
|
|
#ifndef WIN32
|
|
#define WIN32
|
|
#endif
|
|
#ifndef _WIN32
|
|
#define _WIN32
|
|
#endif
|
|
#define FAR
|
|
#define far
|
|
#define NEAR
|
|
#define near
|
|
#ifndef CONST
|
|
#define CONST const
|
|
#endif
|
|
#undef MAX_PATH
|
|
#define MAX_PATH 260
|
|
|
|
#ifndef NULL
|
|
#ifdef __cplusplus
|
|
#define NULL 0
|
|
#else
|
|
#define NULL ((void*)0)
|
|
#endif
|
|
#endif
|
|
#ifndef FALSE
|
|
#define FALSE 0
|
|
#endif
|
|
#ifndef TRUE
|
|
#define TRUE 1
|
|
#endif
|
|
#define IN
|
|
#define OUT
|
|
#ifndef OPTIONAL
|
|
#define OPTIONAL
|
|
#endif
|
|
|
|
#ifdef __GNUC__
|
|
#define PACKED __attribute__((packed))
|
|
#ifndef _stdcall
|
|
#define _stdcall __attribute__((stdcall))
|
|
#endif
|
|
#ifndef __stdcall
|
|
#define __stdcall __attribute__((stdcall))
|
|
#endif
|
|
#ifndef _cdecl
|
|
#define _cdecl __attribute__((cdecl))
|
|
#endif
|
|
#ifndef __cdecl
|
|
#define __cdecl __attribute__((cdecl))
|
|
#endif
|
|
#ifndef __declspec
|
|
#define __declspec(e) __attribute__((e))
|
|
#endif
|
|
#ifndef _declspec
|
|
#define _declspec(e) __attribute__((e))
|
|
#endif
|
|
#else
|
|
#define PACKED
|
|
#define _cdecl
|
|
#define __cdecl
|
|
#endif
|
|
|
|
#undef pascal
|
|
#undef _pascal
|
|
#undef __pascal
|
|
#define pascal __stdcall
|
|
#define _pascal __stdcall
|
|
#define __pascal __stdcall
|
|
#define PASCAL _pascal
|
|
#define CDECL _cdecl
|
|
#define STDCALL __stdcall
|
|
#define WINAPI __stdcall
|
|
#define WINAPIV __cdecl
|
|
#define APIENTRY __stdcall
|
|
#define CALLBACK __stdcall
|
|
#define APIPRIVATE __stdcall
|
|
|
|
#define DECLSPEC_IMPORT __declspec(dllimport)
|
|
#define DECLSPEC_EXPORT __declspec(dllexport)
|
|
#ifdef __GNUC__
|
|
#define DECLSPEC_NORETURN __declspec(noreturn)
|
|
#define DECLARE_STDCALL_P( type ) __stdcall type
|
|
#elif defined(__WATCOMC__)
|
|
#define DECLSPEC_NORETURN
|
|
#define DECLARE_STDCALL_P( type ) type __stdcall
|
|
#endif /* __GNUC__/__WATCOMC__ */
|
|
#define MAKEWORD(a,b) ((WORD)(((BYTE)(a))|(((WORD)((BYTE)(b)))<<8)))
|
|
#define MAKELONG(a,b) ((LONG)(((WORD)(a))|(((DWORD)((WORD)(b)))<<16)))
|
|
#define LOWORD(l) ((WORD)((DWORD)(l)))
|
|
#define HIWORD(l) ((WORD)(((DWORD)(l)>>16)&0xFFFF))
|
|
#define LOBYTE(w) ((BYTE)(w))
|
|
#define HIBYTE(w) ((BYTE)(((WORD)(w)>>8)&0xFF))
|
|
|
|
#ifndef _export
|
|
#define _export
|
|
#endif
|
|
#ifndef __export
|
|
#define __export
|
|
#endif
|
|
|
|
#ifndef NOMINMAX
|
|
#ifndef max
|
|
#define max(a,b) ((a)>(b)?(a):(b))
|
|
#endif
|
|
#ifndef min
|
|
#define min(a,b) ((a)<(b)?(a):(b))
|
|
#endif
|
|
#endif
|
|
|
|
#define UNREFERENCED_PARAMETER(P) {(P)=(P);}
|
|
#define UNREFERENCED_LOCAL_VARIABLE(L) {(L)=(L);}
|
|
#define DBG_UNREFERENCED_PARAMETER(P)
|
|
#define DBG_UNREFERENCED_LOCAL_VARIABLE(L)
|
|
|
|
typedef unsigned long DWORD;
|
|
typedef int WINBOOL,*PWINBOOL,*LPWINBOOL;
|
|
/* FIXME: Is there a good solution to this? */
|
|
#ifndef XFree86Server
|
|
#ifndef __OBJC__
|
|
typedef WINBOOL BOOL;
|
|
#else
|
|
#define BOOL WINBOOL
|
|
#endif
|
|
typedef unsigned char BYTE;
|
|
#endif /* ndef XFree86Server */
|
|
typedef BOOL *PBOOL,*LPBOOL;
|
|
typedef unsigned short WORD;
|
|
typedef float FLOAT;
|
|
typedef FLOAT *PFLOAT;
|
|
typedef BYTE *PBYTE,*LPBYTE;
|
|
typedef int *PINT,*LPINT;
|
|
typedef WORD *PWORD,*LPWORD;
|
|
typedef long *LPLONG;
|
|
typedef DWORD *PDWORD,*LPDWORD;
|
|
typedef void *PVOID,*LPVOID;
|
|
typedef CONST void *PCVOID,*LPCVOID;
|
|
typedef int INT;
|
|
typedef unsigned int UINT,*PUINT,*LPUINT;
|
|
|
|
#include <winnt.h>
|
|
|
|
typedef UINT WPARAM;
|
|
typedef LONG LPARAM;
|
|
typedef LONG LRESULT;
|
|
#ifndef _HRESULT_DEFINED
|
|
typedef LONG HRESULT;
|
|
#define _HRESULT_DEFINED
|
|
#endif
|
|
#ifndef XFree86Server
|
|
typedef WORD ATOM;
|
|
#endif /* XFree86Server */
|
|
typedef HANDLE HGLOBAL;
|
|
typedef HANDLE HLOCAL;
|
|
typedef HANDLE GLOBALHANDLE;
|
|
typedef HANDLE LOCALHANDLE;
|
|
typedef void *HGDIOBJ;
|
|
DECLARE_HANDLE(HACCEL);
|
|
DECLARE_HANDLE(HBITMAP);
|
|
DECLARE_HANDLE(HBRUSH);
|
|
DECLARE_HANDLE(HCOLORSPACE);
|
|
DECLARE_HANDLE(HDC);
|
|
DECLARE_HANDLE(HGLRC);
|
|
DECLARE_HANDLE(HDESK);
|
|
DECLARE_HANDLE(HENHMETAFILE);
|
|
DECLARE_HANDLE(HFONT);
|
|
DECLARE_HANDLE(HICON);
|
|
DECLARE_HANDLE(HKEY);
|
|
/* FIXME: How to handle these. SM_CMONITORS etc in winuser.h also. */
|
|
/* #if (WINVER >= 0x0500) */
|
|
DECLARE_HANDLE(HMONITOR);
|
|
#define HMONITOR_DECLARED 1
|
|
DECLARE_HANDLE(HTERMINAL);
|
|
DECLARE_HANDLE(HWINEVENTHOOK);
|
|
/* #endif */
|
|
typedef HKEY *PHKEY;
|
|
DECLARE_HANDLE(HMENU);
|
|
DECLARE_HANDLE(HMETAFILE);
|
|
DECLARE_HANDLE(HINSTANCE);
|
|
typedef HINSTANCE HMODULE;
|
|
DECLARE_HANDLE(HPALETTE);
|
|
DECLARE_HANDLE(HPEN);
|
|
DECLARE_HANDLE(HRGN);
|
|
DECLARE_HANDLE(HRSRC);
|
|
DECLARE_HANDLE(HSTR);
|
|
DECLARE_HANDLE(HTASK);
|
|
DECLARE_HANDLE(HWND);
|
|
DECLARE_HANDLE(HWINSTA);
|
|
DECLARE_HANDLE(HKL);
|
|
typedef int HFILE;
|
|
typedef HICON HCURSOR;
|
|
typedef DWORD COLORREF;
|
|
typedef int (WINAPI *FARPROC)();
|
|
typedef int (WINAPI *NEARPROC)();
|
|
typedef int (WINAPI *PROC)();
|
|
typedef struct tagRECT {
|
|
LONG left;
|
|
LONG top;
|
|
LONG right;
|
|
LONG bottom;
|
|
} RECT,*PRECT,*LPRECT;
|
|
typedef const RECT *LPCRECT;
|
|
typedef struct tagRECTL {
|
|
LONG left;
|
|
LONG top;
|
|
LONG right;
|
|
LONG bottom;
|
|
} RECTL,*PRECTL,*LPRECTL;
|
|
typedef const RECTL *LPCRECTL;
|
|
typedef struct tagPOINT {
|
|
LONG x;
|
|
LONG y;
|
|
} POINT,POINTL,*PPOINT,*LPPOINT,*PPOINTL,*LPPOINTL;
|
|
typedef struct tagSIZE {
|
|
LONG cx;
|
|
LONG cy;
|
|
} SIZE,SIZEL,*PSIZE,*LPSIZE,*PSIZEL,*LPSIZEL;
|
|
typedef struct tagPOINTS {
|
|
SHORT x;
|
|
SHORT y;
|
|
} POINTS,*PPOINTS,*LPPOINTS;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|