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.0 sl@0: // The purpose of this source code is to throw an error during compilation sl@0: // if the VG/openvg.h header does not re-direct to the VG/1.0/openvg.h sl@0: // This file must be compiled without __OPENVGHEADERS_USE_VG_1_1 to ensure version 1.0 will be picked up 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.0 headers sl@0: */ sl@0: #include sl@0: sl@0: #ifdef OPENVG_VERSION_1_1 sl@0: #error "openvgheaders configuration error: Requested VG 1.0 header, got VG 1.1 header" sl@0: #endif sl@0: 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.