Revision 67b915a5 sdl.c

b/sdl.c
21 21
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 22
 * THE SOFTWARE.
23 23
 */
24
#include <stdlib.h>
25
#include <stdio.h>
26
#include <stdarg.h>
27
#include <string.h>
28
#include <getopt.h>
29
#include <inttypes.h>
30
#include <unistd.h>
31
#include <sys/mman.h>
32
#include <fcntl.h>
33
#include <signal.h>
34
#include <time.h>
35
#include <sys/time.h>
36
#include <malloc.h>
37
#include <termios.h>
38
#include <sys/poll.h>
39
#include <errno.h>
40
#include <sys/wait.h>
41
#include <netinet/in.h>
24
#include "vl.h"
42 25

  
43 26
#include <SDL.h>
44 27

  
45
#include "cpu.h"
46
#include "exec-all.h"
47

  
48
#include "vl.h"
28
#ifndef _WIN32
29
#include <signal.h>
30
#endif
49 31

  
50 32
static SDL_Surface *screen;
51 33
static int gui_grab; /* if true, all keyboard/mouse events are grabbed */
......
291 273
        fprintf(stderr, "Could not initialize SDL - exiting\n");
292 274
        exit(1);
293 275
    }
276

  
277
#ifndef _WIN32
294 278
    /* NOTE: we still want Ctrl-C to work, so we undo the SDL redirections */
295 279
    signal(SIGINT, SIG_DFL);
296 280
    signal(SIGQUIT, SIG_DFL);
281
#endif
297 282

  
298 283
    ds->dpy_update = sdl_update;
299 284
    ds->dpy_resize = sdl_resize;

Also available in: Unified diff