mirror of
https://github.com/TinyCC/tinycc.git
synced 2025-11-16 12:34:45 +00:00
Compare commits
3 Commits
38ab5f65b3
...
47106ce103
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
47106ce103 | ||
|
|
8f23997ca7 | ||
|
|
e73529865d |
@@ -1,5 +1,6 @@
|
||||
#ifndef _STDDEF_H
|
||||
#define _STDDEF_H
|
||||
#define _TINYC_STDDEF
|
||||
|
||||
typedef __SIZE_TYPE__ size_t;
|
||||
typedef __PTRDIFF_TYPE__ ssize_t;
|
||||
|
||||
1
tcc.c
1
tcc.c
@@ -87,6 +87,7 @@ static const char help[] =
|
||||
#ifdef TCC_TARGET_PE
|
||||
" create def file : tcc -impdef lib.dll [-v] [-o lib.def]\n"
|
||||
#endif
|
||||
" report bugs to the mailing list http://lists.nongnu.org/mailman/listinfo/tinycc-devel\n"
|
||||
;
|
||||
|
||||
static const char help2[] =
|
||||
|
||||
2
tccgen.c
2
tccgen.c
@@ -1330,7 +1330,7 @@ static void move_ref_to_global(Sym *s)
|
||||
if (!(bt == VT_PTR
|
||||
|| bt == VT_FUNC
|
||||
|| bt == VT_STRUCT
|
||||
|| (IS_ENUM(s->type.t)) && (bt = VT_ENUM,1)))
|
||||
|| ((IS_ENUM(s->type.t)) && (bt = VT_ENUM,1))))
|
||||
return;
|
||||
|
||||
for (s = s->type.ref, n = 0; s; s = s->next) {
|
||||
|
||||
@@ -17,10 +17,6 @@
|
||||
/* __VA_ARGS__ and __func__ support */
|
||||
#define C99_MACROS
|
||||
|
||||
#ifndef __TINYC__
|
||||
typedef __SIZE_TYPE__ uintptr_t;
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32) \
|
||||
|| (defined(__arm__) \
|
||||
&& (defined(__FreeBSD__) \
|
||||
@@ -66,6 +62,10 @@ typedef __SIZE_TYPE__ uintptr_t;
|
||||
|
||||
#include "tcctest.h"
|
||||
|
||||
#ifndef _TINYC_STDDEF
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
/* Test two more ways to include a file named like a pp-number */
|
||||
#define INC(name) <tests/name.h>
|
||||
#define funnyname 42test.h
|
||||
|
||||
Reference in New Issue
Block a user