Mercurial > vim
comparison src/os_mswin.c @ 3102:38a7fd904347 v7.3.322
updated for version 7.3.322
Problem: #ifdef for PDP_RETVAL doesn't work, INT_PTR can be a typedef.
Solution: Check the MSC version and 64 bit flags. (Sergiu Dotenco)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 21 Sep 2011 20:09:42 +0200 |
parents | e5b17a5f6516 |
children | e618700297e8 |
comparison
equal
deleted
inserted
replaced
3101:678b7b21abac | 3102:38a7fd904347 |
---|---|
1779 *(ptr + 2) = temp; | 1779 *(ptr + 2) = temp; |
1780 return colorref; | 1780 return colorref; |
1781 } | 1781 } |
1782 | 1782 |
1783 /* Attempt to make this work for old and new compilers */ | 1783 /* Attempt to make this work for old and new compilers */ |
1784 #if !defined(_MSC_VER) || (_MSC_VER < 1300) || !defined(INT_PTR) | 1784 #if !defined(_WIN64) && (!defined(_MSC_VER) || _MSC_VER < 1300) |
1785 # define PDP_RETVAL BOOL | 1785 # define PDP_RETVAL BOOL |
1786 #else | 1786 #else |
1787 # define PDP_RETVAL INT_PTR | 1787 # define PDP_RETVAL INT_PTR |
1788 #endif | 1788 #endif |
1789 | 1789 |