OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 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" |
| 9 #if defined(OS_WIN) |
| 10 #include <windows.h> |
| 11 #endif |
| 12 |
| 13 namespace base { |
| 14 |
| 15 #if defined(OS_WIN) |
| 16 typedef HANDLE PlatformFile; |
| 17 #elif defined(OS_POSIX) |
| 18 typedef int PlatformFile; |
| 19 #endif // defined(OS_POSIX) |
| 20 } |
| 21 |
| 22 #endif // BASE_FILES_PLATFORM_FILE_H_ |
OLD | NEW |