mescc: Mes C Library: Support gcc-4.6.4. WIP
This commit is contained in:
parent
bbc65faa84
commit
69a71425f1
|
@ -58,6 +58,9 @@ typedef int int32_t;
|
|||
typedef unsigned long long uint64_t;
|
||||
typedef long long int64_t;
|
||||
|
||||
typedef int intmax_t;
|
||||
typedef unsigned uintmax_t;
|
||||
|
||||
#ifndef __MES_SIZE_T
|
||||
#define __MES_SIZE_T
|
||||
#undef size_t
|
||||
|
@ -70,10 +73,12 @@ typedef unsigned long size_t;
|
|||
typedef long intptr_t;
|
||||
#endif
|
||||
|
||||
// FIXME
|
||||
typedef int intmax_t;
|
||||
typedef unsigned uintmax_t;
|
||||
typedef unsigned* uintptr_t;
|
||||
#ifndef __MES_UINTPTR_T
|
||||
#define __MES_UINTPTR_T
|
||||
#undef intptr_t
|
||||
typedef long uintptr_t;
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef __MES_PTRDIFF_T
|
||||
#define __MES_PTRDIFF_T
|
||||
|
|
|
@ -19,14 +19,15 @@
|
|||
*/
|
||||
|
||||
#include <libmes.h>
|
||||
#include <time.h>
|
||||
|
||||
int
|
||||
ctime (int x)
|
||||
char *
|
||||
ctime (time_t const *TIME)
|
||||
{
|
||||
static int stub = 0;
|
||||
if (__mes_debug () && !stub)
|
||||
eputs ("ctime stub\n");
|
||||
stub = 1;
|
||||
errno = 0;
|
||||
return 0;
|
||||
return "now";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue