slibc
|
00001 /* Copyright (C) 2011-2012 SBA Research gGmbh 00002 00003 This file is part of the Slibc Library. 00004 00005 The Slibc Library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public 00007 License as published by the Free Software Foundation; either 00008 version 2.1 of the License, or (at your option) any later version. 00009 00010 The Slibc library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Lesser General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public 00016 License along with the Slibc Library; if not, see 00017 <http://www.gnu.org/licenses/>. 00018 */ 00023 // include the system-header first 00024 #include_next <errno.h> 00025 00026 // Glibc headers often include errno.h only to get some types 00027 // in that case the caller defined __need_TYPE (e.g. __need_Emath) 00028 // If errno.h is included in a normal way, it will define the macro _ERRNO_H 00029 // (Let's hope that this macro name is portable) 00030 #if defined(_ERRNO_H) && !defined(SLIBC_ERRNO_H) 00031 #define SLIBC_ERRNO_H 00032 00033 // TR 24731-1 is not available if __STDC_WANT_LIB_EXT1__ equals 0 00034 #if (!defined(__STDC_WANT_LIB_EXT1__) || (__STDC_WANT_LIB_EXT1__ != 0)) 00035 00036 //TR 24731-1 addition to errno.h 00039 typedef int errno_t; 00040 00041 #endif 00042 00043 #endif