| 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 // TODO(gregoryd): add a Windows definition for base::FileDescriptor, |  | 
| 10 // replace the macros with inline functions. |  | 
| 11 namespace nacl { |  | 
| 12 #if defined(OS_WIN) |  | 
| 13 typedef HANDLE FileDescriptor; |  | 
| 14 #define NATIVE_HANDLE(desc) (desc) |  | 
| 15 #elif defined(OS_POSIX) |  | 
| 16 typedef base::FileDescriptor FileDescriptor; |  | 
| 17 #define NATIVE_HANDLE(desc) ((desc).fd) |  | 
| 18 #endif |  | 
| 19 } |  | 
| 20 |  | 
| 21 #endif  // CHROME_COMMON_NACL_TYPES_H_ |  | 
| OLD | NEW | 
|---|