OLD | NEW |
| (Empty) |
1 // Copyright (c) 2009 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 // Handle passing definitions for NaCl | |
6 #ifndef CHROME_COMMON_NACL_TYPES_H_ | |
7 #define CHROME_COMMON_NACL_TYPES_H_ | |
8 | |
9 namespace nacl { | |
10 #if defined(OS_WIN) | |
11 typedef HANDLE FileDescriptor; | |
12 #define NATIVE_HANDLE(desc) (static_cast<HANDLE>(desc)) | |
13 #elif defined(OS_POSIX) | |
14 typedef base::FileDescriptor FileDescriptor; | |
15 #define NATIVE_HANDLE(desc) ((desc).fd) | |
16 #endif | |
17 } | |
18 | |
19 #endif // CHROME_COMMON_NACL_TYPES_H_ | |
OLD | NEW |