blob: b82c516baae9ebd90b8650514f984bad2f8347c0 (
plain)
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
|
#ifndef GUARD_BR_IPS_GLOBAL_H
#define GUARD_BR_IPS_GLOBAL_H
#ifdef _MSC_VER
#define FATAL_ERROR(format, ...) \
do { \
fprintf(stderr, format, __VA_ARGS__); \
exit(1); \
} while (0)
#else
#define FATAL_ERROR(format, ...) \
do { \
fprintf(stderr, format, ##__VA_ARGS__); \
exit(1); \
} while (0)
#endif // _MSC_VER
typedef struct Hunk {
uint32_t offset;
size_t size;
} hunk_t;
#endif //GUARD_BR_IPS_GLOBAL_H
|