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@2: * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members williamr@2: * which accompanies this distribution, and is available williamr@2: * at the URL "http://www.symbianfoundation.org/legal/licencesv10.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: * Redistribution and use in source and binary forms, with or without williamr@2: * modification, are permitted provided that the following conditions are met: williamr@2: * Redistributions of source code must retain the above copyright notice, this williamr@2: * list of conditions and the following disclaimer. williamr@2: * Redistributions in binary form must reproduce the above copyright notice, williamr@2: * this list of conditions and the following disclaimer in the documentation williamr@2: * and/or other materials provided with the distribution. williamr@2: * Neither the name of the nor the names of its contributors williamr@2: * may be used to endorse or promote products derived from this software williamr@2: * without specific prior written permission. williamr@2: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" williamr@2: * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE williamr@2: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE williamr@2: * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE williamr@2: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL williamr@2: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR williamr@2: * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER williamr@2: * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, williamr@2: * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE williamr@2: * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 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: 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_ */