# HG changeset patch # User alexander.chemeris@d525d15b-5824-0410-80a3-6185d19c2cde # Date 1165873915 0 # Node ID 0cf270b831ef8e16d25fbfb26281585f88cca450 # Parent 45fb2c2960e1be4aab217f567adaca50893f48c7 Rise #error if _MSC_VER is not defined. I.e. compiler other then Microsoft Visual C++ is used. diff --git a/inttypes.h b/inttypes.h --- 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 ] diff --git a/stdint.h b/stdint.h --- 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 ]