More standard C and TCC fixes

This commit is contained in:
Anton Kochkov 2015-10-06 01:25:20 +03:00
parent 811c493045
commit 82eed6f2a5
3 changed files with 11 additions and 4 deletions

View File

@ -125,7 +125,7 @@ typedef struct {
#define def_field(name, size) \
unsigned int bf_##name##_valid:1; \
unsigned int bf_##name##_value:size;
unsigned int bf_##name##_value:size
struct {
def_field (E, 1);
@ -198,8 +198,8 @@ typedef struct {
// qualifiers
def_field (q_lr, 1)
def_field (q_cr, 1)
def_field (q_lr, 1);
def_field (q_cr, 1);
} f;
RHashTable * map;

View File

@ -115,7 +115,14 @@
# ifdef __GNUC__
# define alloca __builtin_alloca
# else
# ifdef __TINYC__
#define alloca(x) _alloca_tcc(x)
extern void * _alloca_tcc(unsigned x);
extern void * __bound__alloca_tcc(unsigned x);
# else
extern char *alloca ();
# endif /* __TINYC__ */
# endif /* __GNUC__ */
# endif /* alloca */
#endif /* HAVE_ALLOCA_H */

View File

@ -28,7 +28,7 @@ CFLAGS+=-I../../libr/include
LDFLAGS+=-L../../libr/util
OBJS=code.o class.o ops.o dsojson.o
all: out libr_java.a
all: libr_java.a
libr_java.a: ${OBJS}
rm -f libr_java.a