sl@0: // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // Test the behaviour of graphics_openvgheaders in version 1.1 sl@0: // The purpose of this source code is to thrown an error during compilation sl@0: // if the VG/openvg.h header does not re-direct to the VG/1.1/openvg.h sl@0: // This code must be compiled with __OPENVGHEADERS_USE_VG_1_1 to ensure that version 1.1 will be chosen sl@0: // sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @internalTechnology sl@0: @released sl@0: */ sl@0: #include sl@0: sl@0: /* sl@0: * Include the VG/openvg.h which will be re-directed to OPENVG 1.1 headers sl@0: */ sl@0: #include sl@0: sl@0: #ifndef OPENVG_VERSION_1_1 sl@0: #error "openglesheaders testcase failure: VG/openvg.h expects to include VG/1.1/openvg.h" sl@0: #endif sl@0: sl@0: GLDEF_C TInt E32Main() sl@0: { sl@0: return 0; sl@0: } sl@0: sl@0: // Getting this far without a compilation error indicates success.