mirror of
https://git.code.sf.net/p/mingw-w64/mingw-w64
synced 2024-11-23 09:54:39 +08:00
Add guard for __WIDL__ and define proper widl defines
This commit is contained in:
parent
5a7308bdf6
commit
07803a6d70
@ -1,11 +1,13 @@
|
||||
/**
|
||||
* This file has no copyright assigned and is placed in the Public Domain.
|
||||
* This file is part of the mingw-w64 runtime package.
|
||||
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
||||
* No warranty is given; refer to the file DISCLAIMER within this package.
|
||||
*/
|
||||
|
||||
#ifndef _OLECTL_H_
|
||||
#define _OLECTL_H_
|
||||
|
||||
#if !defined (__WIDL__)
|
||||
|
||||
#ifndef RC_INVOKED
|
||||
#include <pshpack8.h>
|
||||
#endif
|
||||
@ -287,6 +289,7 @@ WINOLECTLAPI_(HCURSOR) OleIconToCursor(HINSTANCE hinstExe,HICON hIcon);
|
||||
#if !defined(RC_INVOKED)
|
||||
#include <poppack.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define DISPID_AUTOSIZE (-500)
|
||||
#define DISPID_BACKCOLOR (-501)
|
||||
@ -404,4 +407,14 @@ WINOLECTLAPI_(HCURSOR) OleIconToCursor(HINSTANCE hinstExe,HICON hIcon);
|
||||
#define DISPID_PICT_WIDTH 4
|
||||
#define DISPID_PICT_HEIGHT 5
|
||||
#define DISPID_PICT_RENDER 6
|
||||
|
||||
#if defined (__WIDL__)
|
||||
#define STDOLE_TLB "stdole2.tlb"
|
||||
#ifdef _WIN64
|
||||
#define STDTYPE_TLB "stdole2.tlb"
|
||||
#else
|
||||
#define STDTYPE_TLB "olepro32.dll"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user