williamr@2: /* williamr@2: * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: * All rights reserved. williamr@2: * This component and the accompanying materials are made available williamr@4: * under the terms of "Eclipse Public License v1.0" williamr@2: * which accompanies this distribution, and is available williamr@4: * at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@2: * williamr@2: * Initial Contributors: williamr@2: * Nokia Corporation - initial contribution. williamr@2: * williamr@2: * Contributors: williamr@2: * williamr@2: * Description: williamr@2: * To get a strict ANSI C environment, define macro _STRICT_ANSI. This will williamr@2: * "comment out" the non-ANSI parts of the ANSI header files (non-ANSI header williamr@2: * files aren't affected). williamr@2: * williamr@2: * williamr@2: */ williamr@2: williamr@2: williamr@2: williamr@2: #ifndef _ANSIDECL_H_ williamr@2: #define _ANSIDECL_H_ williamr@2: williamr@2: /** williamr@2: Epoc32 STDLIB is an ANSI environment and expects an ANSI C compiler williamr@2: MSVC is however an environment which doesn't define __STDC__, so williamr@2: we fix it up in here... williamr@2: */ williamr@2: williamr@2: #ifndef __STDC__ williamr@2: #define __STDC__ 1 williamr@2: #endif williamr@2: williamr@2: #define _STRICT_ANSI williamr@2: williamr@2: /** williamr@2: From GCC 2.5 onwards it is possible to tell the compiler that functions williamr@2: don't return, which would stop some warnings while building STDLIB williamr@2: */ williamr@2: #if 0 williamr@2: #define _ATTRIBUTE(attrs) __attribute__ (attrs) williamr@2: #else williamr@2: #define _ATTRIBUTE(attrs) williamr@2: #endif williamr@2: williamr@2: /* williamr@2: williamr@2: */ williamr@2: williamr@2: #ifndef EXPORT_C williamr@2: /** williamr@2: It is needed to annotate the functions which will be exported from the ESTLIB DLL, williamr@2: but mustn't conflict with the definitions in williamr@2: */ williamr@2: #ifdef __VC32__ williamr@2: #define IMPORT_C __declspec(dllexport) williamr@2: #define EXPORT_C __declspec(dllexport) williamr@2: #endif williamr@2: williamr@2: #ifdef __CW32__ williamr@2: #define IMPORT_C __declspec(dllexport) williamr@2: #define EXPORT_C __declspec(dllexport) williamr@2: #endif williamr@2: williamr@2: #ifdef __GCC32__ williamr@2: #define IMPORT_C williamr@2: #define EXPORT_C __declspec(dllexport) williamr@2: #endif williamr@2: williamr@2: #ifdef __SYMBIAN32__ williamr@2: #ifdef __cplusplus williamr@2: #include williamr@2: #endif williamr@2: #else williamr@2: #define IMPORT_C williamr@2: #define EXPORT_C williamr@2: #endif williamr@2: williamr@2: #endif /* EXPORT_C */ williamr@2: #endif /* _ANSIDECL_H_ */