X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=compat.h;h=74b45c3c211535955f25ef69f6c880e4627466aa;hb=a5b476eb4eed9b06e22f4a80b16251aea243207d;hp=d49955bf4d5750a7c58f471b4708f481c15c868f;hpb=7ad4026e424c61d72c0099f4d1a504fe46d774bf;p=apitrace diff --git a/compat.h b/compat.h index d49955b..74b45c3 100644 --- a/compat.h +++ b/compat.h @@ -20,12 +20,15 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. - * Copyright 2007-2009 VMware, Inc. - * All rights reserved. * **************************************************************************/ +/* + * MinGW compatability macros to allow using recent's DXSDK headers. + */ + #ifdef __MINGW32__ + #define __in /**/ #define __out /**/ #define __inout /**/ @@ -46,9 +49,13 @@ #define __field_ecount_full(x) /**/ #define __inline static __inline__ +#ifndef DECLSPEC_DEPRECATED #define DECLSPEC_DEPRECATED /**/ +#endif -#define UINT8 uint8_t - +#ifndef __MINGW64_VERSION_MAJOR +#define UINT8 unsigned char #endif +#endif /* __MINGW32__ */ +