eapol/eapol_framework/eapol_common/am/include/eap_am_export.h
author hgs
Thu, 16 Sep 2010 13:07:04 +0300
changeset 49 43351a4f2da3
parent 26 9abfd4f00d37
permissions -rw-r--r--
201037

/*
* Copyright (c) 2001-2006 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  EAP and WLAN authentication protocols.
*
*/

/*
* %version: 4.1.8 %
*/

#if !defined( _EAP_AM_EXPORT_H_ )
#define _EAP_AM_EXPORT_H_

#if defined(EAP_NO_EXPORTS)
	// No exports are needed.
	#if defined(__WINS__)
		#define EAP_FUNC_IMPORT 
		#define EAP_FUNC_EXPORT 
		#define EAP_C_FUNC_IMPORT 
		#define EAP_C_FUNC_EXPORT 
		#define EAP_FUNC_IMPORT_EMPTY 
		#define EAP_FUNC_EXPORT_EMPTY 
		#define EAP_EXPORT 
		#define EAP_IMPORT 
		#define EAP_SHARABLE
		#define EAP_NONSHARABLE 
		#define EAP_NONSHARABLE_CLASS
	#else
		#define EAP_FUNC_IMPORT __declspec(dllimport)
		#define EAP_FUNC_EXPORT 
		#define EAP_C_FUNC_IMPORT __declspec(dllimport)
		#define EAP_C_FUNC_EXPORT 
		#define EAP_FUNC_IMPORT_EMPTY 
		#define EAP_FUNC_EXPORT_EMPTY 
		#define EAP_EXPORT __declspec(notshared) /* This is used marking a class non-sharable. */
		#define EAP_IMPORT 
		#define EAP_SHARABLE
		#define EAP_NONSHARABLE __declspec(notshared)
		#define EAP_NONSHARABLE_CLASS
	#endif
	#if defined(__WINS__)
		#pragma warning( disable : 4355 )
	#endif /* defined(__WINS__) */
#elif defined(__SYMBIAN32__)
	// This is Symbian compilation.
	#if defined(__WINS__)
		#define EAP_FUNC_IMPORT 
		#define EAP_FUNC_EXPORT __declspec(dllexport)
		#define EAP_C_FUNC_IMPORT 
		#define EAP_C_FUNC_EXPORT __declspec(dllexport)
		#define EAP_FUNC_IMPORT_EMPTY 
		#define EAP_FUNC_EXPORT_EMPTY 
		#define EAP_EXPORT 
		#define EAP_IMPORT 
		#define EAP_SHARABLE
		#define EAP_NONSHARABLE 
		#define EAP_NONSHARABLE_CLASS __declspec(notshared)
	#else
		#define EAP_FUNC_IMPORT __declspec(dllimport)
		#define EAP_FUNC_EXPORT __declspec(dllexport)
		#define EAP_C_FUNC_IMPORT __declspec(dllimport)
		#define EAP_C_FUNC_EXPORT __declspec(dllexport)
		#define EAP_FUNC_IMPORT_EMPTY 
		#define EAP_FUNC_EXPORT_EMPTY 
		#define EAP_EXPORT 
		#define EAP_IMPORT 
		#define EAP_SHARABLE
		#define EAP_NONSHARABLE __declspec(notshared)
		#define EAP_NONSHARABLE_CLASS __declspec(notshared)
	#endif
	#if defined(__WINS__)
		#pragma warning( disable : 4355 )
	#endif /* defined(__WINS__) */
#elif defined(linux)
	// This is linux compilation.
	#define EAP_FUNC_IMPORT
	#define EAP_FUNC_EXPORT
	#define EAP_C_FUNC_IMPORT
	#define EAP_C_FUNC_EXPORT
	#define EAP_FUNC_IMPORT_EMPTY 
	#define EAP_FUNC_EXPORT_EMPTY 
	#define EAP_EXPORT
	#define EAP_IMPORT 
	#define EAP_SHARABLE
	#define EAP_NONSHARABLE
	#define EAP_NONSHARABLE_CLASS
#elif defined(__GNUC__)
	// This is cygwin compilation.
	#define EAP_FUNC_IMPORT __declspec(dllexport)
	#define EAP_FUNC_EXPORT
	#define EAP_C_FUNC_IMPORT __declspec(dllexport)
	#define EAP_C_FUNC_EXPORT
	#define EAP_FUNC_IMPORT_EMPTY 
	#define EAP_FUNC_EXPORT_EMPTY 
	#define EAP_EXPORT __declspec(dllexport)
	#define EAP_IMPORT 
	#define EAP_SHARABLE
	#define EAP_NONSHARABLE
	#define EAP_NONSHARABLE_CLASS
#elif defined(_WIN32) && !defined(__GNUC__)
	// This is windows compilation.
	#define EAP_FUNC_IMPORT 
	#define EAP_FUNC_EXPORT 
	#define EAP_C_FUNC_IMPORT 
	#define EAP_C_FUNC_EXPORT 
	#define EAP_FUNC_IMPORT_EMPTY 
	#define EAP_FUNC_EXPORT_EMPTY 
	#define EAP_EXPORT 
	#define EAP_IMPORT 
	#define EAP_SHARABLE
	#define EAP_NONSHARABLE
	#define EAP_NONSHARABLE_CLASS 
	#if defined(__WINS__)
		#pragma warning( disable : 4355 )
	#endif /* defined(__WINS__) */
#endif

#if 0
// This is for separate exports of interface functions.
#if defined(USE_EAP_INTERFACE_EXPORTS)
	#if defined(__SYMBIAN32__)
		#define EAP_FUNC_IMPORT_INTERFACE IMPORT_C
		#define EAP_FUNC_EXPORT_INTERFACE EXPORT_C
		#define EAP_EXPORT_INTERFACE 
	#elif defined(linux)
		#define EAP_FUNC_IMPORT_INTERFACE
		#define EAP_FUNC_EXPORT_INTERFACE
		#define EAP_EXPORT_INTERFACE 
	#elif defined(__GNUC__)
		#define EAP_FUNC_IMPORT_INTERFACE __declspec(dllexport)
		#define EAP_FUNC_EXPORT_INTERFACE
		#define EAP_EXPORT_INTERFACE __declspec(dllexport)
	#elif defined(_WIN32) && !defined(__GNUC__)
		#define EAP_FUNC_IMPORT_INTERFACE 
		#define EAP_FUNC_EXPORT_INTERFACE
		#define EAP_EXPORT_INTERFACE __declspec(dllexport)
	#endif
#else
	#define EAP_FUNC_IMPORT_INTERFACE EAP_FUNC_IMPORT
	#define EAP_FUNC_EXPORT_INTERFACE EAP_FUNC_EXPORT
	#define EAP_EXPORT_INTERFACE EAP_EXPORT
#endif //#if defined(USE_EAP_INTERFACE_EXPORTS)
#endif //#if 0

#endif //#if !defined( _EAP_AM_EXPORT_H_ )



// End.