mescc: Compile fixes.
* include/libmes-mini.h[WITH_GLIBC]: Do not declare strlen, write, types.
This commit is contained in:
parent
e27e7af055
commit
614bfeb3b8
|
@ -26,6 +26,8 @@ int g_stdin;
|
||||||
int g_stdout;
|
int g_stdout;
|
||||||
int g_stderr;
|
int g_stderr;
|
||||||
|
|
||||||
|
#if !WITH_GLIBC
|
||||||
|
|
||||||
#ifndef _SIZE_T
|
#ifndef _SIZE_T
|
||||||
#define _SIZE_T
|
#define _SIZE_T
|
||||||
#ifndef __SIZE_T
|
#ifndef __SIZE_T
|
||||||
|
@ -45,10 +47,22 @@ typedef unsigned long size_t;
|
||||||
#ifndef __MES_SSIZE_T
|
#ifndef __MES_SSIZE_T
|
||||||
#define __MES_SSIZE_T
|
#define __MES_SSIZE_T
|
||||||
#undef ssize_t
|
#undef ssize_t
|
||||||
|
#if __i386__
|
||||||
|
typedef int ssize_t;
|
||||||
|
#else
|
||||||
typedef long ssize_t;
|
typedef long ssize_t;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef __MES_ERRNO_T
|
||||||
|
#define __MES_ERRNO_T 1
|
||||||
|
typedef int error_t;
|
||||||
|
int errno;
|
||||||
|
#endif // !__MES_ERRNO_T
|
||||||
|
|
||||||
|
#endif //!WITH_LIBC
|
||||||
|
|
||||||
#ifndef STDIN
|
#ifndef STDIN
|
||||||
#define STDIN 0
|
#define STDIN 0
|
||||||
|
@ -62,16 +76,14 @@ typedef long ssize_t;
|
||||||
#define STDERR 2
|
#define STDERR 2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __MES_ERRNO_T
|
|
||||||
#define __MES_ERRNO_T 1
|
|
||||||
typedef int error_t;
|
|
||||||
int errno;
|
|
||||||
#endif // !__MES_ERRNO_T
|
|
||||||
|
|
||||||
size_t strlen (char const* s);
|
|
||||||
ssize_t write (int filedes, void const *buffer, size_t size);
|
|
||||||
int eputs (char const* s);
|
int eputs (char const* s);
|
||||||
int puts (char const* s);
|
int puts (char const* s);
|
||||||
int oputs (char const* s);
|
int oputs (char const* s);
|
||||||
|
|
||||||
|
#if !WITH_GLIBC
|
||||||
|
size_t strlen (char const* s);
|
||||||
|
ssize_t write (int filedes, void const *buffer, size_t size);
|
||||||
|
#endif // !WITH_GLIBC
|
||||||
|
|
||||||
#endif //__MES_LIBMES_MINI_H
|
#endif //__MES_LIBMES_MINI_H
|
||||||
|
|
|
@ -45,7 +45,6 @@ int _open3 (char const *file_name, int flags, int mask);
|
||||||
int _open2 (char const *file_name, int flags);
|
int _open2 (char const *file_name, int flags);
|
||||||
int oputc (int c);
|
int oputc (int c);
|
||||||
int oputs (char const* s);
|
int oputs (char const* s);
|
||||||
ssize_t write (int filedes, void const *buffer, size_t size);
|
|
||||||
char *search_path (char const *file_name);
|
char *search_path (char const *file_name);
|
||||||
|
|
||||||
#endif //__MES_LIBMES_H
|
#endif //__MES_LIBMES_H
|
||||||
|
|
Loading…
Reference in a new issue