mescc: Add proper includes.

* include/libmes.h (__mes_debug): Declare.
* lib/libtcc1.c: Add proper includes.
* lib/linux+gnu.c: Likewise.
* lib/m4.c: Likewise.
This commit is contained in:
Jan Nieuwenhuizen 2018-07-21 11:15:48 +02:00
parent 57cb608b6a
commit 58ca3ab6c0
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
5 changed files with 11 additions and 7 deletions

View File

@ -21,6 +21,7 @@
#ifndef __MES_LIBMES_H
#define __MES_LIBMES_H
int __mes_debug ();
char const* number_to_ascii (int number, int base, int signed_p);
char const* itoa (int number);
char const* utoa (unsigned number);

View File

@ -32,7 +32,7 @@ isdigit (int c)
int
isxdigit (int c)
{
return isdigit (c) || c >= 'a' && c <= 'f';
return isdigit (c) || (c >= 'a' && c <= 'f');
}
int

View File

@ -18,6 +18,8 @@
* along with Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
double
__divdi3 (double a, double b)
{
@ -112,15 +114,13 @@ __fixunsxfdi (double a1)
return 0;
}
#if __TINYC__ == 9227
int
#if __TINYC__ == 9226
long
#else
long long
#elif __TINYC__
int
#endif // __TINYC__ == 9226
#endif // __TINYC__ == 9227
#else // !__TINYCC_
long long
#endif // !__TINYCC_
__fixdfdi (double a1)
{
static int stub = 0;

View File

@ -36,6 +36,7 @@
#define SYS_fstat 0x6c
#define SYS_nanosleep 0xa2
#include <sys/resource.h>
int
link (char const *old_name, char const *new_name)

View File

@ -18,6 +18,8 @@
* along with Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <ctype.h>
int
abort ()
{