Fix formatting and comment why fcntl.h is included.

This commit is contained in:
Victor Zverovich
2014-06-10 07:36:50 -07:00
parent a2828412b6
commit 07095e85b2

View File

@@ -29,7 +29,7 @@
#define FMT_POSIX_H #define FMT_POSIX_H
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h> // for O_RDONLY
#include <stdio.h> #include <stdio.h>
#include <cstddef> #include <cstddef>
@@ -189,7 +189,7 @@ public:
enum { enum {
RDONLY = FMT_POSIX(O_RDONLY), // Open for reading only. RDONLY = FMT_POSIX(O_RDONLY), // Open for reading only.
WRONLY = FMT_POSIX(O_WRONLY), // Open for writing only. WRONLY = FMT_POSIX(O_WRONLY), // Open for writing only.
RDWR = FMT_POSIX(O_RDWR) // Open for reading and writing. RDWR = FMT_POSIX(O_RDWR) // Open for reading and writing.
}; };
// Constructs a File object which doesn't represent any file. // Constructs a File object which doesn't represent any file.