eapol/eapol_framework/eapol_common/am/include/eap_am_export.h
changeset 0 c8830336c852
child 2 1c7bc153c08e
equal deleted inserted replaced
-1:000000000000 0:c8830336c852
       
     1 /*
       
     2 * Copyright (c) 2001-2006 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 the License "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:  EAP and WLAN authentication protocols.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #if !defined( _EAP_EXPORT_H_ )
       
    22 #define _EAP_EXPORT_H_
       
    23 
       
    24 #if defined(EAP_NO_EXPORTS)
       
    25 	// No exports are needed.
       
    26 	#define EAP_FUNC_IMPORT 
       
    27 	#define EAP_FUNC_EXPORT 
       
    28 	#define EAP_C_FUNC_IMPORT 
       
    29 	#define EAP_C_FUNC_EXPORT 
       
    30 	#define EAP_FUNC_IMPORT_EMPTY 
       
    31 	#define EAP_FUNC_EXPORT_EMPTY 
       
    32 	#define EAP_EXPORT 
       
    33 	#define EAP_NONSHARABLE_CLASS
       
    34 	#if defined(__WINS__)
       
    35 		#pragma warning( disable : 4355 )
       
    36 	#endif /* defined(__WINS__) */
       
    37 #elif defined(__SYMBIAN32__)
       
    38 	// This is Symbian compilation.
       
    39 	#define EAP_FUNC_IMPORT IMPORT_C
       
    40 	#define EAP_FUNC_EXPORT EXPORT_C
       
    41 	#define EAP_C_FUNC_IMPORT IMPORT_C
       
    42 	#define EAP_C_FUNC_EXPORT EXPORT_C
       
    43 	#define EAP_FUNC_IMPORT_EMPTY 
       
    44 	#define EAP_FUNC_EXPORT_EMPTY 
       
    45 	#define EAP_EXPORT 
       
    46 	#if defined(__WINS__)
       
    47 		#define EAP_NONSHARABLE_CLASS
       
    48 	#else
       
    49 		#define EAP_NONSHARABLE_CLASS __declspec(notshared)
       
    50 	#endif
       
    51 	#if defined(__WINS__)
       
    52 		#pragma warning( disable : 4355 )
       
    53 	#endif /* defined(__WINS__) */
       
    54 #elif defined(linux)
       
    55 	// This is linux compilation.
       
    56 	#define EAP_FUNC_IMPORT
       
    57 	#define EAP_FUNC_EXPORT
       
    58 	#define EAP_C_FUNC_IMPORT
       
    59 	#define EAP_C_FUNC_EXPORT
       
    60 	#define EAP_FUNC_IMPORT_EMPTY 
       
    61 	#define EAP_FUNC_EXPORT_EMPTY 
       
    62 	#define EAP_EXPORT
       
    63 	#define EAP_NONSHARABLE_CLASS
       
    64 #elif defined(__GNUC__)
       
    65 	// This is cygwin compilation.
       
    66 	#define EAP_FUNC_IMPORT __declspec(dllexport)
       
    67 	#define EAP_FUNC_EXPORT
       
    68 	#define EAP_C_FUNC_IMPORT __declspec(dllexport)
       
    69 	#define EAP_C_FUNC_EXPORT
       
    70 	#define EAP_FUNC_IMPORT_EMPTY 
       
    71 	#define EAP_FUNC_EXPORT_EMPTY 
       
    72 	#define EAP_EXPORT __declspec(dllexport)
       
    73 	#define EAP_NONSHARABLE_CLASS
       
    74 #elif defined(_WIN32) && !defined(__GNUC__)
       
    75 	// This is windows compilation.
       
    76 	#define EAP_FUNC_IMPORT 
       
    77 	#define EAP_FUNC_EXPORT
       
    78 	#define EAP_C_FUNC_IMPORT __declspec(dllexport)
       
    79 	#define EAP_C_FUNC_EXPORT
       
    80 	#define EAP_FUNC_IMPORT_EMPTY 
       
    81 	#define EAP_FUNC_EXPORT_EMPTY 
       
    82 	#define EAP_EXPORT __declspec(dllexport)
       
    83 	#define EAP_NONSHARABLE_CLASS
       
    84 	#if defined(__WINS__)
       
    85 		#pragma warning( disable : 4355 )
       
    86 	#endif /* defined(__WINS__) */
       
    87 #endif
       
    88 
       
    89 // This is for separate exports of interface functions.
       
    90 #if defined(USE_EAP_INTERFACE_EXPORTS)
       
    91 	#if defined(__SYMBIAN32__)
       
    92 		#define EAP_FUNC_IMPORT_INTERFACE IMPORT_C
       
    93 		#define EAP_FUNC_EXPORT_INTERFACE EXPORT_C
       
    94 		#define EAP_EXPORT_INTERFACE 
       
    95 	#elif defined(linux)
       
    96 		#define EAP_FUNC_IMPORT_INTERFACE
       
    97 		#define EAP_FUNC_EXPORT_INTERFACE
       
    98 		#define EAP_EXPORT_INTERFACE 
       
    99 	#elif defined(__GNUC__)
       
   100 		#define EAP_FUNC_IMPORT_INTERFACE __declspec(dllexport)
       
   101 		#define EAP_FUNC_EXPORT_INTERFACE
       
   102 		#define EAP_EXPORT_INTERFACE __declspec(dllexport)
       
   103 	#elif defined(_WIN32) && !defined(__GNUC__)
       
   104 		#define EAP_FUNC_IMPORT_INTERFACE 
       
   105 		#define EAP_FUNC_EXPORT_INTERFACE
       
   106 		#define EAP_EXPORT_INTERFACE __declspec(dllexport)
       
   107 	#endif
       
   108 #else
       
   109 	#define EAP_FUNC_IMPORT_INTERFACE EAP_FUNC_IMPORT
       
   110 	#define EAP_FUNC_EXPORT_INTERFACE EAP_FUNC_EXPORT
       
   111 	#define EAP_EXPORT_INTERFACE EAP_EXPORT
       
   112 #endif //#if defined(USE_EAP_INTERFACE_EXPORTS)
       
   113 
       
   114 #endif //#if !defined( _EAP_EXPORT_H_ )
       
   115 
       
   116 
       
   117 
       
   118 // End.