• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
2 #ifndef __OSDEP_H__
3 #define __OSDEP_H__ 1
4 
5 
6 #ifdef __WINDOWS_GCC__
7 
8 #include <stdlib.h>
9 #include <stdarg.h>
10 
11 #define __BEGIN_DECLS
12 #define __END_DECLS
13 #define _POSIX_PATH_MAX 255
14 
15 #define	S_IXGRP         S_IXUSR
16 #define	S_IWGRP         S_IWUSR
17 #define	S_IRGRP         S_IRUSR
18 #define S_IROTH         S_IRUSR
19 #define S_IWOTH         S_IWUSR
20 
21 #define HAVE_STDARG_H 1
22 #define HAVE_STRING_H 1
23 #undef HAVE_GMTOFF
24 
25 
26 
27 int snprintf (char *str, size_t count, const char *fmt, ...);
28 int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
29 
30 int mkstemp(char *path);
31 
32 #define os_random rand
33 
34 #else // UNIX......
35 
36 #define os_random random
37 
38 #define HAVE_PTHREAD 1
39 
40 #endif
41 
42 
43 
44 #endif // __OSDEP_H__
45