ReactOS 0.4.15-dev-7788-g1ad9096
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.
22typedef unsigned char uint8_t;
23typedef unsigned short uint16_t;
24typedef unsigned int uint32_t;
25typedef unsigned long long uint64_t;
26
27void isohybrid_error(int eval, const char* fmt, ...);
28void 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
37int fsync(int fd);
38int getppid(void);
39#endif
40
41#ifdef _MSC_VER
42#define fseeko _fseeki64
43#define ftruncate _chsize
44#endif
45
46#endif
unsigned short uint16_t
unsigned int uint32_t
void isohybrid_error(int eval, const char *fmt,...)
void isohybrid_warning(const char *fmt,...)
unsigned long long uint64_t
unsigned char uint8_t
static int fd
Definition: io.c:51
Definition: dsound.c:943