OLD | NEW |
1 /* 7zFile.h -- File IO | 1 /* 7zFile.h -- File IO |
2 2009-11-24 : Igor Pavlov : Public domain */ | 2 2013-01-18 : Igor Pavlov : Public domain */ |
3 | 3 |
4 #ifndef __7Z_FILE_H | 4 #ifndef __7Z_FILE_H |
5 #define __7Z_FILE_H | 5 #define __7Z_FILE_H |
6 | 6 |
7 #ifdef _WIN32 | 7 #ifdef _WIN32 |
8 #define USE_WINDOWS_FILE | 8 #define USE_WINDOWS_FILE |
9 #endif | 9 #endif |
10 | 10 |
11 #ifdef USE_WINDOWS_FILE | 11 #ifdef USE_WINDOWS_FILE |
12 #include <windows.h> | 12 #include <windows.h> |
13 #else | 13 #else |
14 #include <stdio.h> | 14 #include <stdio.h> |
15 #endif | 15 #endif |
16 | 16 |
17 #include "Types.h" | 17 #include "7zTypes.h" |
18 | 18 |
19 EXTERN_C_BEGIN | 19 EXTERN_C_BEGIN |
20 | 20 |
21 /* ---------- File ---------- */ | 21 /* ---------- File ---------- */ |
22 | 22 |
23 typedef struct | 23 typedef struct |
24 { | 24 { |
25 #ifdef USE_WINDOWS_FILE | 25 #ifdef USE_WINDOWS_FILE |
26 HANDLE handle; | 26 HANDLE handle; |
27 #else | 27 #else |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 { | 74 { |
75 ISeqOutStream s; | 75 ISeqOutStream s; |
76 CSzFile file; | 76 CSzFile file; |
77 } CFileOutStream; | 77 } CFileOutStream; |
78 | 78 |
79 void FileOutStream_CreateVTable(CFileOutStream *p); | 79 void FileOutStream_CreateVTable(CFileOutStream *p); |
80 | 80 |
81 EXTERN_C_END | 81 EXTERN_C_END |
82 | 82 |
83 #endif | 83 #endif |
OLD | NEW |