2017-01-24 22:53:20 +00:00
|
|
|
#ifndef _REACTOS_SUPPORT_CODE_H
|
|
|
|
#define _REACTOS_SUPPORT_CODE_H
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
#include <malloc.h>
|
|
|
|
#include <windows.h>
|
2019-04-15 11:29:33 +00:00
|
|
|
#include <process.h>
|
|
|
|
#include <io.h>
|
2017-01-24 22:53:20 +00:00
|
|
|
#else
|
|
|
|
#include <alloca.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#endif
|
|
|
|
|
2019-04-27 14:19:26 +00:00
|
|
|
#include "../port/port.h"
|
|
|
|
|
2017-04-17 13:49:46 +00:00
|
|
|
// isotypes.h would provide these, but it's not available on MSVC < 2013.
|
|
|
|
typedef unsigned char uint8_t;
|
|
|
|
typedef unsigned short uint16_t;
|
|
|
|
typedef unsigned int uint32_t;
|
|
|
|
typedef unsigned long long uint64_t;
|
|
|
|
|
2017-01-24 22:53:20 +00:00
|
|
|
void isohybrid_error(int eval, const char* fmt, ...);
|
|
|
|
void isohybrid_warning(const char* fmt, ...);
|
|
|
|
|
|
|
|
#define err(...) isohybrid_error(__VA_ARGS__)
|
|
|
|
#define errx(...) isohybrid_error(__VA_ARGS__)
|
|
|
|
#define warn(...) isohybrid_warning(__VA_ARGS__)
|
|
|
|
#define warnx(...) isohybrid_warning(__VA_ARGS__)
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
int fsync(int fd);
|
|
|
|
int getppid(void);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
#define fseeko _fseeki64
|
|
|
|
#define ftruncate _chsize
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|