Index: base/files/file.h |
diff --git a/base/files/file.h b/base/files/file.h |
index 7ab5ca5859485a146fa5084f8b304503d1f19d5a..6b5d83d57323af0dfe9f7bd9b84b115dc62e3a54 100644 |
--- a/base/files/file.h |
+++ b/base/files/file.h |
@@ -29,10 +29,13 @@ |
namespace base { |
#if defined(OS_WIN) |
-typedef HANDLE PlatformFile; |
+using PlatformFile = HANDLE; |
+ |
+const PlatformFile kInvalidPlatformFile = INVALID_HANDLE_VALUE; |
#elif defined(OS_POSIX) |
-typedef int PlatformFile; |
+using PlatformFile = int; |
+const PlatformFile kInvalidPlatformFile = -1; |
#if defined(OS_BSD) || defined(OS_MACOSX) || defined(OS_NACL) |
typedef struct stat stat_wrapper_t; |
#else |