1 /* ------------------------------------------------------------------ 2 * Copyright (C) 1998-2009 PacketVideo 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 13 * express or implied. 14 * See the License for the specific language governing permissions 15 * and limitations under the License. 16 * ------------------------------------------------------------------- 17 */ 18 19 #ifndef OSCLCONFIG_ERROR_CHECK_H_INCLUDED 20 #define OSCLCONFIG_ERROR_CHECK_H_INCLUDED 21 22 23 /** 24 OSCL_HAS_EXCEPTIONS macro should be set to 1 if 25 the target platform supports C++ exceptions (throw, catch). 26 Otherwise it should be set to 0. 27 */ 28 #ifndef OSCL_HAS_EXCEPTIONS 29 #error "ERROR: OSCL_HAS_EXCEPTIONS has to be defined to either 1 or 0" 30 #endif 31 32 /** 33 OSCL_HAS_EXCEPTIONS macro should be set to 1 if 34 the target platform supports the POSIX-compliant errno.h header file. 35 Otherwise it should be set to 0. 36 */ 37 #ifndef OSCL_HAS_ERRNO_H 38 #error "ERROR: OSCL_HAS_ERRNO_H has to be defined to either 1 or 0" 39 #endif 40 41 /** 42 OSCL_HAS_SYMBIAN_ERRORTRAP macro should be set to 1 if 43 the target platform has Symbian leave, trap, and cleanup stack support. 44 Otherwise it should be set to 0. 45 */ 46 #ifndef OSCL_HAS_SYMBIAN_ERRORTRAP 47 #error "ERROR: OSCL_HAS_SYMBIAN_ERRORTRAP has to be defined to either 1 or 0" 48 #endif 49 50 /** 51 OSCL_HAS_SETJMP_H macro should be set to 1 if 52 the target platform supports the setjmp.h header file including 53 the setjmp and longjmp functions. 54 Otherwise it should be set to 0. 55 */ 56 #ifndef OSCL_HAS_SETJMP_H 57 #error "ERROR: OSCL_HAS_SETJMP_H has to be defined to either 1 or 0" 58 #endif 59 60 61 #endif //OSCLCONFIG_ERROR_CHECK_H_INCLUDED 62 63 64