openvg/openvginterface/test/vg_10.cpp
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 // Copyright (c) 2008-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 "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Test the behaviour of graphics_openvgheaders in version 1.0
       
    15 // The purpose of this source code is to throw an error during compilation
       
    16 // if the VG/openvg.h header does not re-direct to the VG/1.0/openvg.h
       
    17 // This file must be compiled without __OPENVGHEADERS_USE_VG_1_1 to ensure version 1.0 will be picked up
       
    18 // 
       
    19 //
       
    20 
       
    21 /**
       
    22  @file
       
    23  @internalTechnology
       
    24  @released
       
    25 */
       
    26 #include <e32base.h>
       
    27 
       
    28 /*
       
    29  * Include the VG/openvg.h which will be re-directed to OPENVG 1.0 headers
       
    30  */
       
    31 #include <VG/openvg.h>
       
    32 
       
    33 #ifdef OPENVG_VERSION_1_1
       
    34 #error "openvgheaders configuration error: Requested VG 1.0 header, got VG 1.1 header"
       
    35 #endif
       
    36 
       
    37 
       
    38 GLDEF_C TInt E32Main()
       
    39     {
       
    40     return 0;
       
    41     }
       
    42 	
       
    43 // Getting this far without a compilation error indicates success.