comparison src/GvimExt/gvimext.h @ 2080:fa7e62dd58d7 v7.2.364

updated for version 7.2.364 Problem: Can't build gvimext.dll on Win 7 x64 using MinGW (John Marriott) Solution: Check if _MSC_VER is defined. (Andy Kittner)
author Bram Moolenaar <bram@zimbu.org>
date Wed, 17 Feb 2010 17:24:27 +0100
parents a209672376fd
children a0cce15dd2a9
comparison
equal deleted inserted replaced
2079:5abd3e3c0085 2080:fa7e62dd58d7
12 */ 12 */
13 13
14 #if !defined(AFX_STDAFX_H__3389658B_AD83_11D3_9C1E_0090278BBD99__INCLUDED_) 14 #if !defined(AFX_STDAFX_H__3389658B_AD83_11D3_9C1E_0090278BBD99__INCLUDED_)
15 #define AFX_STDAFX_H__3389658B_AD83_11D3_9C1E_0090278BBD99__INCLUDED_ 15 #define AFX_STDAFX_H__3389658B_AD83_11D3_9C1E_0090278BBD99__INCLUDED_
16 16
17 #if _MSC_VER > 1000 17 #if defined(_MSC_VER) && _MSC_VER > 1000
18 #pragma once 18 #pragma once
19 #endif // _MSC_VER > 1000 19 #endif
20 20
21 // Insert your headers here 21 // Insert your headers here
22 // #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 22 // #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
23 23
24 //-------------------------------------------------------------- 24 //--------------------------------------------------------------
32 #endif 32 #endif
33 33
34 #define INC_OLE2 // WIN32, get ole2 from windows.h 34 #define INC_OLE2 // WIN32, get ole2 from windows.h
35 35
36 /* Visual Studio 2005 has 'deprecated' many of the standard CRT functions */ 36 /* Visual Studio 2005 has 'deprecated' many of the standard CRT functions */
37 #if _MSC_VER >= 1400 37 #if defined(_MSC_VER) && _MSC_VER >= 1400
38 # define _CRT_SECURE_NO_DEPRECATE 38 # define _CRT_SECURE_NO_DEPRECATE
39 # define _CRT_NONSTDC_NO_DEPRECATE 39 # define _CRT_NONSTDC_NO_DEPRECATE
40 #endif 40 #endif
41 41
42 #include <windows.h> 42 #include <windows.h>
43 #include <windowsx.h> 43 #include <windowsx.h>
44 #include <shlobj.h> 44 #include <shlobj.h>
45 45
46 /* Accommodate old versions of VC that don't have a modern Platform SDK */ 46 /* Accommodate old versions of VC that don't have a modern Platform SDK */
47 #if _MSC_VER < 1300 47 #if defined(_MSC_VER) && _MSC_VER < 1300
48 # undef UINT_PTR 48 # undef UINT_PTR
49 # define UINT_PTR UINT 49 # define UINT_PTR UINT
50 #endif 50 #endif
51 51
52 #define ResultFromShort(i) ResultFromScode(MAKE_SCODE(SEVERITY_SUCCESS, 0, (USHORT)(i))) 52 #define ResultFromShort(i) ResultFromScode(MAKE_SCODE(SEVERITY_SUCCESS, 0, (USHORT)(i)))