Commit | Line | Data |
---|---|---|
bf7105d1 JA |
1 | /* |
2 | * \file res_pack_i.h | |
3 | * \brief include file for res_pack | |
4 | * | |
5 | * \version 1.0.0 | |
6 | * \date 25/10/2013 11:33 | |
7 | * \author Sam.Wu <yihui.wu@amlgic.com> | |
8 | * | |
9 | * Copyright (c) 2013 Amlogic Inc.. All Rights Reserved. | |
10 | * | |
11 | */ | |
12 | #ifndef __RES_PACK_I_H__ | |
13 | #define __RES_PACK_I_H__ | |
14 | ||
15 | #ifndef WIN32 | |
16 | #include <unistd.h> | |
17 | #include <dirent.h> | |
18 | ||
19 | #define MAX_PATH 512 | |
20 | #define min(a, b) ((a) > (b) ? (b) : (a)) | |
21 | #else | |
22 | //For windows platform | |
23 | #include <windows.h> | |
24 | #include <tchar.h> | |
25 | #include <strsafe.h> | |
26 | ||
27 | #define fseeko _fseeki64 | |
28 | #endif// #ifndef WIN32 | |
29 | ||
30 | #include <stdio.h> | |
31 | #include <errno.h> | |
32 | #include <string.h> | |
33 | #include <fcntl.h> | |
34 | #include <sys/stat.h> | |
35 | #include <sys/types.h> | |
36 | #include <stdlib.h> | |
37 | ||
38 | #include "res_pack.h" | |
39 | #include "crc32.h" | |
40 | ||
41 | #ifdef BUILD_DLL | |
42 | #include "res_dll_if.h" | |
43 | #endif// #ifdef BUILD_DLL | |
44 | ||
45 | typedef void* __hdle; | |
46 | ||
47 | #define debugP(...) printf("dbg:"),printf(__VA_ARGS__) | |
48 | #define errorP(...) printf("ERR(L%d):", __LINE__),printf(__VA_ARGS__) | |
49 | ||
50 | #endif // __RES_PACK_I$_H__ |