ReactOS  0.4.13-dev-235-g7373cb3
reactos_support_code.h
Go to the documentation of this file.
1 #ifndef _REACTOS_SUPPORT_CODE_H
2 #define _REACTOS_SUPPORT_CODE_H
3 
4 #include <stdarg.h>
5 #include <stdio.h>
6 #include <stdlib.h>
7 #include <string.h>
8 
9 #ifdef _WIN32
10 #include <malloc.h>
11 #include <windows.h>
12 #include <process.h>
13 #include <io.h>
14 #else
15 #include <alloca.h>
16 #include <unistd.h>
17 #endif
18 
19 #include "../port/port.h"
20 
21 // isotypes.h would provide these, but it's not available on MSVC < 2013.
22 typedef unsigned char uint8_t;
23 typedef unsigned short uint16_t;
24 typedef unsigned int uint32_t;
25 typedef unsigned long long uint64_t;
26 
27 void isohybrid_error(int eval, const char* fmt, ...);
28 void isohybrid_warning(const char* fmt, ...);
29 
30 #define err(...) isohybrid_error(__VA_ARGS__)
31 #define errx(...) isohybrid_error(__VA_ARGS__)
32 #define warn(...) isohybrid_warning(__VA_ARGS__)
33 #define warnx(...) isohybrid_warning(__VA_ARGS__)
34 
35 
36 #ifdef _WIN32
37 int fsync(int fd);
38 int getppid(void);
39 #endif
40 
41 #ifdef _MSC_VER
42 #define fseeko _fseeki64
43 #define ftruncate _chsize
44 #endif
45 
46 #endif
unsigned long long uint64_t
void isohybrid_warning(const char *fmt,...)
unsigned int uint32_t
unsigned char uint8_t
void isohybrid_error(int eval, const char *fmt,...)
static int fd
Definition: io.c:51
unsigned short uint16_t
Definition: dsound.c:943