williamr@2: // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // 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 williamr@2: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // Enforce ANSI compliance on Microsoft compilers in 'For loop' behaviour williamr@2: // williamr@2: // williamr@2: williamr@2: williamr@2: #if !defined(__ANSICOMP_H__) williamr@2: #define __ANSICOMP_H__ williamr@2: williamr@2: #if defined(__VC32__) && _MSC_VER>=1100 williamr@2: #pragma warning(disable : 4127) // warning C4127 : conditional expression is constant williamr@2: williamr@2: #define for if(false);else for // Enforce the definition of a loop variable to local scope williamr@2: williamr@2: #endif williamr@2: williamr@2: #endif // __ANSICOMP_H__