-
-
Notifications
You must be signed in to change notification settings - Fork 113
/
compat.h
40 lines (35 loc) · 693 Bytes
/
compat.h
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
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef _COMPAT_H
#define _COMPAT_H
#ifdef _WIN32
#define fdopen _fdopen
#define dup _dup
#endif
#ifdef _WIN32
int _yr_compiler_add_fd(
YR_COMPILER* compiler,
int rules_fd,
const char* namespace_,
const char* file_name);
#else
#define _yr_compiler_add_fd yr_compiler_add_fd
#endif
#ifdef _WIN32
int _yr_rules_scan_fd(
YR_RULES* rules,
int fd,
int flags,
YR_CALLBACK_FUNC callback,
void* user_data,
int timeout);
#else
#define _yr_rules_scan_fd yr_rules_scan_fd
#endif
#ifdef _WIN32
#include <stdint.h>
int _yr_scanner_scan_fd(
YR_SCANNER* scanner,
int fd);
#else
#define _yr_scanner_scan_fd yr_scanner_scan_fd
#endif
#endif /* _COMPAT_H */