|
Aegis
4.25.D505
|
00001 // 00002 // aegis - a project change supervisor 00003 // Copyright (C) 1994-1996, 1999, 2004-2006, 2008 Peter Miller 00004 // 00005 // This program is free software; you can redistribute it and/or modify 00006 // it under the terms of the GNU General Public License as published by 00007 // the Free Software Foundation; either version 3 of the License, or 00008 // (at your option) any later version. 00009 // 00010 // This program 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 00013 // GNU General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU General Public License 00016 // along with this program. If not, see 00017 // <http://www.gnu.org/licenses/>. 00018 // 00019 00020 #ifndef COMMON_AC_STDLIB_H 00021 #define COMMON_AC_STDLIB_H 00022 00023 #include <common/config.h> 00024 00025 #if HAVE_STDLIB_H 00026 #include <stdlib.h> 00027 #else 00028 00029 #ifndef _WCHAR_T 00030 #ifndef _T_WCHAR_ 00031 #ifndef _T_WCHAR 00032 #ifndef __WCHAR_T 00033 #ifndef _WCHAR_T_ 00034 #ifndef _WCHAR_T_H 00035 #ifndef ___int_wchar_t_h 00036 #ifndef __INT_WCHAR_T_H 00037 #ifndef _GCC_WCHAR_T 00038 #define _WCHAR_T 00039 #define _T_WCHAR_ 00040 #define _T_WCHAR 00041 #define __WCHAR_T 00042 #define _WCHAR_T_ 00043 #define _WCHAR_T_H 00044 #define ___int_wchar_t_h 00045 #define __INT_WCHAR_T_H 00046 #define _GCC_WCHAR_T 00047 #ifndef __WCHAR_TYPE__ 00048 #define __WCHAR_TYPE__ int 00049 #endif 00050 typedef __WCHAR_TYPE__ wchar_t; 00051 typedef int wchar_t; 00052 #endif 00053 #endif 00054 #endif 00055 #endif 00056 #endif 00057 #endif 00058 #endif 00059 #endif 00060 #endif 00061 00062 #ifndef MB_LEN_MAX 00063 #define MB_LEN_MAX 1 00064 #endif 00065 00066 #ifndef MB_CUR_MAX 00067 #define MB_CUR_MAX 1 00068 #endif 00069 00070 #endif 00071 00072 // 00073 // On Linux, the proptotype for exit isn't quite correct. 00074 // 00075 #ifdef __linux__ 00076 #ifdef __NORETURN 00077 #ifdef __NORETURN2 00078 extern __NORETURN void exit __P((int)) __NORETURN2; 00079 #endif 00080 #endif 00081 #endif 00082 00083 #endif // COMMON_AC_STDLIB_H
1.7.6.1