Revision 47b01cf3 dyngen-exec.h

b/dyngen-exec.h
19 19
#if !defined(__DYNGEN_EXEC_H__)
20 20
#define __DYNGEN_EXEC_H__
21 21

  
22
/* prevent Solaris from trying to typedef FILE in gcc's
23
   include/floatingpoint.h which will conflict with the
24
   definition down below */
25
#ifdef __sun__
26
#define _FILEDEFED
27
#endif
28

  
29
/* NOTE: standard headers should be used with special care at this
30
   point because host CPU registers are used as global variables. Some
31
   host headers do not allow that. */
32
#include <stddef.h>
33
#include <stdint.h>
34
#include <stdbool.h>
22
#include "qemu-common.h"
35 23

  
36 24
#ifdef __OpenBSD__
37 25
#include <sys/types.h>
......
40 28
/* XXX: This may be wrong for 64-bit ILP32 hosts.  */
41 29
typedef void * host_reg_t;
42 30

  
43
#ifdef CONFIG_BSD
44
typedef struct __sFILE FILE;
45
#else
46
typedef struct FILE FILE;
47
#endif
48
extern int fprintf(FILE *, const char *, ...);
49
extern int fputs(const char *, FILE *);
50
extern int printf(const char *, ...);
51

  
52 31
#if defined(__i386__)
53 32
#define AREG0 "ebp"
54 33
#elif defined(__x86_64__)

Also available in: Unified diff