Revision 082b5557

b/qemu-common.h
12 12
#endif
13 13

  
14 14
#define QEMU_BUILD_BUG_ON(x) typedef char __build_bug_on__##__LINE__[(x)?-1:1];
15
#define TFR(expr) do { if ((expr) != -1) break; } while (errno == EINTR)
15 16

  
16 17
typedef struct QEMUTimer QEMUTimer;
17 18
typedef struct QEMUFile QEMUFile;
......
39 40
#include <sys/time.h>
40 41
#include <assert.h>
41 42

  
43
#ifdef _WIN32
44
#include "qemu-os-win32.h"
45
#endif
46

  
47
#ifdef CONFIG_POSIX
48
#include "qemu-os-posix.h"
49
#endif
50

  
42 51
#ifndef O_LARGEFILE
43 52
#define O_LARGEFILE 0
44 53
#endif
......
339 348
void qemu_progress_end(void);
340 349
void qemu_progress_print(float percent, int max);
341 350

  
351
#define QEMU_FILE_TYPE_BIOS   0
352
#define QEMU_FILE_TYPE_KEYMAP 1
353
char *qemu_find_file(int type, const char *name);
354

  
355
/* OS specific functions */
356
void os_setup_early_signal_handling(void);
357
char *os_find_datadir(const char *argv0);
358
void os_parse_cmd_args(int index, const char *optarg);
359
void os_pidfile_error(void);
360

  
342 361
/* Convert a byte between binary and BCD.  */
343 362
static inline uint8_t to_bcd(uint8_t val)
344 363
{
b/qemu-os-win32.h
26 26
#ifndef QEMU_OS_WIN32_H
27 27
#define QEMU_OS_WIN32_H
28 28

  
29
#include <windows.h>
30
#include <winsock2.h>
31

  
29 32
/* Polling handling */
30 33

  
31 34
/* return TRUE if no sleep should be done afterwards */
b/sysemu.h
8 8
#include "qemu-timer.h"
9 9
#include "notify.h"
10 10

  
11
#ifdef _WIN32
12
#include <windows.h>
13
#include "qemu-os-win32.h"
14
#endif
15

  
16
#ifdef CONFIG_POSIX
17
#include "qemu-os-posix.h"
18
#endif
19

  
20 11
/* vl.c */
21 12
extern const char *bios_name;
22 13

  
23
#define QEMU_FILE_TYPE_BIOS   0
24
#define QEMU_FILE_TYPE_KEYMAP 1
25
char *qemu_find_file(int type, const char *name);
26

  
27 14
extern int vm_running;
28 15
extern const char *qemu_name;
29 16
extern uint8_t qemu_uuid[];
......
100 87
/* SLIRP */
101 88
void do_info_slirp(Monitor *mon);
102 89

  
103
/* OS specific functions */
104
void os_setup_early_signal_handling(void);
105
char *os_find_datadir(const char *argv0);
106
void os_parse_cmd_args(int index, const char *optarg);
107
void os_pidfile_error(void);
108

  
109 90
typedef enum DisplayType
110 91
{
111 92
    DT_DEFAULT,
......
191 172

  
192 173
extern CharDriverState *parallel_hds[MAX_PARALLEL_PORTS];
193 174

  
194
#define TFR(expr) do { if ((expr) != -1) break; } while (errno == EINTR)
195

  
196 175
void do_usb_add(Monitor *mon, const QDict *qdict);
197 176
void do_usb_del(Monitor *mon, const QDict *qdict);
198 177
void usb_info(Monitor *mon);

Also available in: Unified diff