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