[INCLUDE]
- ntdef.h: add missing RTL_NUMBER_OF_FIELD, RTL_PADDING_BETWEEN_FIELDS, RotateLeft*, PRODUCT_*, SUBLANG_*, SORT_*, LANG_SYSTEM_DEFAULT, LANG_USER_DEFAULT, a few LOCALE_*
- winnt.h: add missing LOCALE_SYSTEM_DEFAULT, LOCALE_USER_DEFAULT
- winnls.h: remove definitions that don't belong there, add some missing ones, remove wineisms
- intrin.h Implement _rotl64 for GCC
- basetyps.h: add #pragma once, move include to the top
svn path=/trunk/; revision=63524
2014-06-01 10:15:07 +00:00
|
|
|
|
2005-05-08 17:44:37 +00:00
|
|
|
#ifndef _BASETYPS_H
|
|
|
|
#define _BASETYPS_H
|
[INCLUDE]
- ntdef.h: add missing RTL_NUMBER_OF_FIELD, RTL_PADDING_BETWEEN_FIELDS, RotateLeft*, PRODUCT_*, SUBLANG_*, SORT_*, LANG_SYSTEM_DEFAULT, LANG_USER_DEFAULT, a few LOCALE_*
- winnt.h: add missing LOCALE_SYSTEM_DEFAULT, LOCALE_USER_DEFAULT
- winnls.h: remove definitions that don't belong there, add some missing ones, remove wineisms
- intrin.h Implement _rotl64 for GCC
- basetyps.h: add #pragma once, move include to the top
svn path=/trunk/; revision=63524
2014-06-01 10:15:07 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <guiddef.h>
|
2005-05-08 17:44:37 +00:00
|
|
|
|
|
|
|
#ifndef __OBJC__
|
|
|
|
# ifdef __cplusplus
|
|
|
|
# define EXTERN_C extern "C"
|
|
|
|
# else
|
|
|
|
# define EXTERN_C extern
|
2005-05-09 01:50:07 +00:00
|
|
|
# endif /* __cplusplus */
|
2005-07-20 07:27:09 +00:00
|
|
|
# ifndef _MSC_VER
|
|
|
|
# ifndef __int64
|
|
|
|
# define __int64 long long
|
|
|
|
# endif
|
|
|
|
# ifndef __int32
|
|
|
|
# define __int32 long
|
|
|
|
# endif
|
|
|
|
# ifndef __int16
|
|
|
|
# define __int16 int
|
|
|
|
# endif
|
|
|
|
# ifndef __int8
|
|
|
|
# define __int8 char
|
|
|
|
# endif
|
2005-05-08 17:44:37 +00:00
|
|
|
# endif
|
|
|
|
# ifndef __small
|
|
|
|
# define __small char
|
|
|
|
# endif
|
|
|
|
# ifndef __hyper
|
2005-07-20 07:27:09 +00:00
|
|
|
# define __hyper __int64
|
2005-05-08 17:44:37 +00:00
|
|
|
# endif
|
2007-04-20 02:30:53 +00:00
|
|
|
#endif
|
2005-05-08 17:44:37 +00:00
|
|
|
|
2014-06-01 21:47:51 +00:00
|
|
|
#ifndef STDMETHODCALLTYPE
|
2007-04-20 02:30:53 +00:00
|
|
|
#define STDMETHODCALLTYPE __stdcall
|
|
|
|
#define STDMETHODVCALLTYPE __cdecl
|
|
|
|
#define STDAPICALLTYPE __stdcall
|
|
|
|
#define STDAPIVCALLTYPE __cdecl
|
|
|
|
#define STDAPI EXTERN_C HRESULT STDAPICALLTYPE
|
|
|
|
#define STDAPI_(t) EXTERN_C t STDAPICALLTYPE
|
|
|
|
#define STDMETHODIMP HRESULT STDMETHODCALLTYPE
|
|
|
|
#define STDMETHODIMP_(t) t STDMETHODCALLTYPE
|
|
|
|
#define STDAPIV EXTERN_C HRESULT STDAPIVCALLTYPE
|
|
|
|
#define STDAPIV_(t) EXTERN_C t STDAPIVCALLTYPE
|
|
|
|
#define STDMETHODIMPV HRESULT STDMETHODVCALLTYPE
|
|
|
|
#define STDMETHODIMPV_(t) t STDMETHODVCALLTYPE
|
2014-06-01 21:47:51 +00:00
|
|
|
#endif /* !STDMETHODCALLTYPE */
|
2007-04-20 02:30:53 +00:00
|
|
|
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
|
|
|
# define interface struct
|
|
|
|
# define STDMETHOD(m) virtual HRESULT STDMETHODCALLTYPE m
|
|
|
|
# define STDMETHOD_(t,m) virtual t STDMETHODCALLTYPE m
|
|
|
|
# define PURE =0
|
|
|
|
# define THIS_
|
|
|
|
# define THIS void
|
|
|
|
# define DECLARE_INTERFACE(i) interface i
|
|
|
|
# define DECLARE_INTERFACE_(i,b) interface i : public b
|
|
|
|
#else
|
2008-11-28 18:24:30 +00:00
|
|
|
# define interface struct
|
2007-04-20 02:30:53 +00:00
|
|
|
# define STDMETHOD(m) HRESULT (STDMETHODCALLTYPE *m)
|
|
|
|
# define STDMETHOD_(t,m) t (STDMETHODCALLTYPE *m)
|
|
|
|
# define PURE
|
|
|
|
# define THIS_ INTERFACE *,
|
|
|
|
# define THIS INTERFACE *
|
|
|
|
# ifdef CONST_VTABLE
|
|
|
|
# define DECLARE_INTERFACE(i) \
|
|
|
|
typedef interface i { const struct i##Vtbl *lpVtbl; } i; \
|
|
|
|
typedef struct i##Vtbl i##Vtbl; \
|
|
|
|
struct i##Vtbl
|
2005-05-08 17:44:37 +00:00
|
|
|
# else
|
2007-04-20 02:30:53 +00:00
|
|
|
# define DECLARE_INTERFACE(i) \
|
|
|
|
typedef interface i { struct i##Vtbl *lpVtbl; } i; \
|
|
|
|
typedef struct i##Vtbl i##Vtbl; \
|
|
|
|
struct i##Vtbl
|
2005-05-08 17:44:37 +00:00
|
|
|
# endif
|
2007-04-20 02:30:53 +00:00
|
|
|
# define DECLARE_INTERFACE_(i,b) DECLARE_INTERFACE(i)
|
|
|
|
#endif
|
2005-05-08 17:44:37 +00:00
|
|
|
|
2007-04-20 02:30:53 +00:00
|
|
|
#ifndef _ERROR_STATUS_T_DEFINED
|
|
|
|
#define _ERROR_STATUS_T_DEFINED
|
2007-08-18 10:27:23 +00:00
|
|
|
typedef unsigned long error_status_t;
|
2005-05-08 17:44:37 +00:00
|
|
|
#endif
|
|
|
|
|
2007-04-20 02:30:53 +00:00
|
|
|
#ifndef _WCHAR_T_DEFINED
|
|
|
|
typedef unsigned short wchar_t;
|
|
|
|
#define _WCHAR_T_DEFINED
|
2005-05-08 18:02:41 +00:00
|
|
|
#endif
|
2005-05-08 17:44:37 +00:00
|
|
|
|
2007-04-20 02:30:53 +00:00
|
|
|
#endif /* _BASETYPS_H_ */
|