]> git.xonotic.org Git - xonotic/darkplaces.git/blob - sys_unix.c
deduplicate Sys_Print()
[xonotic/darkplaces.git] / sys_unix.c
1
2 #ifdef WIN32
3 #include <windows.h>
4 #include <mmsystem.h>
5 #else
6 #include <sys/time.h>
7 #include <fcntl.h>
8 #endif
9
10 #include "darkplaces.h"
11
12 sys_t sys;
13
14 // =======================================================================
15 // General routines
16 // =======================================================================
17 void Sys_Shutdown (void)
18 {
19 #ifndef WIN32
20         fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~O_NONBLOCK);
21 #endif
22         fflush(stdout);
23 }
24
25 void Sys_SDL_Dialog(const char *title, const char *string)
26 {
27 }
28
29 char *Sys_GetClipboardData (void)
30 {
31         return NULL;
32 }
33
34 void Sys_SDL_Init(void)
35 {
36 }
37
38 qbool sys_supportsdlgetticks = false;
39 unsigned int Sys_SDL_GetTicks (void)
40 {
41         Sys_Error("Called Sys_SDL_GetTicks on non-SDL target");
42         return 0;
43 }
44 void Sys_SDL_Delay (unsigned int milliseconds)
45 {
46         Sys_Error("Called Sys_SDL_Delay on non-SDL target");
47 }