sl@0: /*
sl@0: * Copyright (c) 1997-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: * To get a strict ANSI C environment, define macro _STRICT_ANSI.  This will
sl@0: * "comment out" the non-ANSI parts of the ANSI header files (non-ANSI header
sl@0: * files aren't affected).
sl@0: * 
sl@0: *
sl@0: */
sl@0: 
sl@0: 
sl@0: 
sl@0: #ifndef	_ANSIDECL_H_
sl@0: #define	_ANSIDECL_H_
sl@0: 
sl@0: /** 
sl@0: Epoc32 STDLIB is an ANSI environment and expects an ANSI C compiler 
sl@0: MSVC is however an environment which doesn't define __STDC__, so
sl@0: we fix it up in here...
sl@0: */
sl@0: 
sl@0: #ifndef __STDC__
sl@0: #define __STDC__	1
sl@0: #endif
sl@0: 
sl@0: #define _STRICT_ANSI
sl@0: 
sl@0: /**
sl@0: From GCC 2.5 onwards it is possible to tell the compiler that functions
sl@0: don't return, which would stop some warnings while building STDLIB
sl@0: */
sl@0: #if 0
sl@0: #define _ATTRIBUTE(attrs) __attribute__ (attrs)
sl@0: #else
sl@0: #define _ATTRIBUTE(attrs)
sl@0: #endif
sl@0: 
sl@0: /*
sl@0: 
sl@0: */
sl@0:  
sl@0: #ifndef EXPORT_C
sl@0: /**
sl@0: It is needed to annotate the functions which will be exported from the ESTLIB DLL,
sl@0: but mustn't conflict with the definitions in <e32std.h>
sl@0: */
sl@0: #ifdef __VC32__
sl@0: #define IMPORT_C __declspec(dllexport)
sl@0: #define EXPORT_C __declspec(dllexport)
sl@0: #endif
sl@0: 
sl@0: #ifdef __CW32__
sl@0: #define IMPORT_C __declspec(dllexport)
sl@0: #define EXPORT_C __declspec(dllexport)
sl@0: #endif
sl@0: 
sl@0: #ifdef __GCC32__
sl@0: #define IMPORT_C
sl@0: #define EXPORT_C __declspec(dllexport)
sl@0: #endif
sl@0: 
sl@0: #ifdef __SYMBIAN32__
sl@0: #ifdef __cplusplus
sl@0: #include <e32def.h>
sl@0: #endif
sl@0: #else
sl@0: #define IMPORT_C
sl@0: #define EXPORT_C
sl@0: #endif
sl@0: 
sl@0: #endif /* EXPORT_C */
sl@0: #endif /* _ANSIDECL_H_ */