diff inttypes.h @ 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 85c12d7e8144
children 72746e08c7ec
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 ]