epoc32/include/mw/ansicomp.h
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 2fe1408b6811
child 4 837f303aceeb
equal deleted inserted replaced
2:2fe1408b6811 3:e1b950c65cb4
       
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Enforce ANSI compliance on Microsoft compilers in 'For loop' behaviour
       
    15 // 
       
    16 //
       
    17 
       
    18 
       
    19 #if !defined(__ANSICOMP_H__)
       
    20 #define __ANSICOMP_H__
       
    21 
       
    22 #if defined(__VC32__) && _MSC_VER>=1100
       
    23 #pragma warning(disable : 4127)		// warning C4127 : conditional expression is constant
       
    24 
       
    25 #define for if(false);else for		// Enforce the definition of a loop variable to local scope
       
    26 
       
    27 #endif
       
    28 
       
    29 #endif    // __ANSICOMP_H__