mmuifw_plat/osn_global_api/inc/osn/osndefines.h
branchRCL_3
changeset 26 0e9bb658ef58
parent 0 e83bab7cf002
equal deleted inserted replaced
25:4ea6f81c838a 26:0e9bb658ef58
       
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Most basic macro definitions
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef OSNDEFINES_H
       
    21 #define OSNDEFINES_H
       
    22 
       
    23 
       
    24 
       
    25 /**
       
    26  * Defines Keyword that can be used to check if OSN is in use
       
    27  */
       
    28 #define __OSN__
       
    29 
       
    30 #if defined(__VC32__)
       
    31 #define OSN_IMPORT __declspec(dllexport)
       
    32 #define OSN_EXPORT __declspec(dllexport)
       
    33 #endif
       
    34 
       
    35 #if defined(__CW32__)
       
    36 #define OSN_IMPORT __declspec(dllexport)
       
    37 #define OSN_EXPORT __declspec(dllexport)
       
    38 #define OSN_NONSHARABLE_CLASS(x) class x
       
    39 #endif
       
    40 
       
    41 #if defined(__GNUC__)
       
    42 #define OSN_IMPORT
       
    43 #define OSN_EXPORT
       
    44 #define EXPORT_C
       
    45 #define IMPORT_C
       
    46 #endif
       
    47 
       
    48 #if defined(__GCC32__) || defined(__GCCE__)
       
    49 #define OSN_IMPORT
       
    50 #if !defined(__WINS__) && defined(_WIN32) // VC++ Browser Fix
       
    51 #define OSN_EXPORT
       
    52 #else
       
    53 #define OSN_EXPORT __declspec(dllexport)
       
    54 #endif
       
    55 #elif defined (__ARMCC_VERSION) // ARM RCVT
       
    56 #define OSN_IMPORT __declspec(dllimport)
       
    57 #define OSN_EXPORT __declspec(dllexport)
       
    58 #define OSN_NONSHARABLE_CLASS(x) class __declspec(notshared) x
       
    59 #endif
       
    60 
       
    61 
       
    62 #endif // OSNDEFINES_H