Mercurial > ms-int-types
changeset 2:0cf270b831ef
Rise #error if _MSC_VER is not defined. I.e. compiler other then Microsoft Visual C++ is used.
author | alexander.chemeris@d525d15b-5824-0410-80a3-6185d19c2cde |
---|---|
date | Mon, 11 Dec 2006 21:51:55 +0000 |
parents | 45fb2c2960e1 |
children | 20f89e144621 |
files | inttypes.h stdint.h |
diffstat | 2 files changed, 6 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/inttypes.h +++ b/inttypes.h @@ -18,8 +18,9 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA /////////////////////////////////////////////////////////////////////////////// -// This file is only usable with Microsoft Visual Studio 2003 or later. -#ifdef _MSC_VER // [ +#ifndef _MSC_VER // [ +#error "Use this header only with Microsoft Visual Studio 2003 or later!" +#endif // _MSC_VER ] #ifndef _MSC_INTTYPES_H_ // [ #define _MSC_INTTYPES_H_ @@ -282,5 +283,3 @@ typedef struct { #endif // _MSC_INTTYPES_H_ ] - -#endif // _MSC_VER ]
--- a/stdint.h +++ b/stdint.h @@ -18,8 +18,9 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA /////////////////////////////////////////////////////////////////////////////// -// This file is only usable with Microsoft Visual Studio 2003 or later. -#ifdef _MSC_VER // [ +#ifndef _MSC_VER // [ +#error "Use this header only with Microsoft Visual Studio 2003 or later!" +#endif // _MSC_VER ] #ifndef _MSC_STDINT_H_ // [ #define _MSC_STDINT_H_ @@ -190,7 +191,4 @@ typedef uint64_t uintmax_t; #endif // __STDC_CONSTANT_MACROS ] - #endif // _MSC_STDINT_H_ ] - -#endif // _MSC_VER ]