OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef BASE_FILES_PLATFORM_FILE_H_ | |
6 #define BASE_FILES_PLATFORM_FILE_H_ | |
7 | |
8 #include "build/build_config.h" | |
brettw
2014/09/16 17:22:03
Blank line after this.
Hajime Morrita
2014/09/16 17:50:23
Done.
| |
9 #if defined(OS_WIN) | |
10 #include <windows.h> | |
11 #endif | |
12 | |
13 namespace base { | |
14 | |
15 #if defined(OS_WIN) | |
brettw
2014/09/16 17:22:03
I would personally find it more clear to but blank
Hajime Morrita
2014/09/16 17:50:23
Done.
| |
16 typedef HANDLE PlatformFile; | |
17 const PlatformFile kInvalidPlatformFile = INVALID_HANDLE_VALUE; | |
18 #elif defined(OS_POSIX) | |
19 typedef int PlatformFile; | |
20 const PlatformFile kInvalidPlatformFile = -1; | |
21 #endif // defined(OS_POSIX) | |
22 | |
23 } // namespace base | |
24 | |
25 #endif // BASE_FILES_PLATFORM_FILE_H_ | |
OLD | NEW |