| OLD | NEW |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. */ |
| 4 */ | 4 |
| 5 #ifndef LIBRARIES_NACL_IO_OSDIRENT_H_ | 5 #ifndef LIBRARIES_NACL_IO_OSDIRENT_H_ |
| 6 #define LIBRARIES_NACL_IO_OSDIRENT_H_ | 6 #define LIBRARIES_NACL_IO_OSDIRENT_H_ |
| 7 | 7 |
| 8 #if defined(WIN32) | 8 #if defined(WIN32) |
| 9 | 9 |
| 10 #include <sys/types.h> | 10 #include <sys/types.h> |
| 11 #include "sdk_util/macros.h" | 11 #include "sdk_util/macros.h" |
| 12 | 12 |
| 13 struct dirent { | 13 struct dirent { |
| 14 _ino_t d_ino; | 14 _ino_t d_ino; |
| 15 _off_t d_off; | 15 _off_t d_off; |
| 16 unsigned short int d_reclen; | 16 unsigned short int d_reclen; |
| 17 char d_name[256]; | 17 char d_name[256]; |
| 18 }; | 18 }; |
| 19 | 19 |
| 20 #else | 20 #else |
| 21 | 21 |
| 22 #include <dirent.h> | 22 #include <dirent.h> |
| 23 | 23 |
| 24 #endif | 24 #endif |
| 25 | 25 |
| 26 #endif // LIBRARIES_NACL_IO_OSDIRENT_H_ | 26 #endif /* LIBRARIES_NACL_IO_OSDIRENT_H_ */ |
| OLD | NEW |