dependencies.h
865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef __DEPENDENCIES_H__
#define __DEPENDENCIES_H__
#ifdef WIN32
#include <windows.h>
#endif
#include "AnubisSupport.h"
/**
* here we make some OS depend initializations
* @return 1 if OK, negative value otherwise
*/
int kernelInit(void);
/**
* Wait until keyboard event are occurred
*/
void WaitForKeyboard(void);
void common_sleep(unsigned int mseconds );
/**
* Must be called (at least on Windows) before to call system_time() function.
*/
status_t initftime(void);
#ifdef __cplusplus
extern "C" {
#endif
/**
* time since booting in microseconds
*/
bigtime_t system_time (void);
#ifdef __cplusplus
}
#endif
#ifdef WIN32
char * getpass(char * in);
void my_exit(int returnCode);
#endif
#ifdef __BEOS__
char *getpass(const char *prompt);
#endif
#if defined (_LINUX_) || (__BEOS__)
#define my_exit(n) exit(n)
#endif
#endif