aboutsummaryrefslogtreecommitdiff
path: root/dep/cppformat/posix.h
diff options
context:
space:
mode:
authorNaios <naios-dev@live.de>2015-07-01 21:06:59 +0200
committerNaios <naios-dev@live.de>2015-07-01 21:18:38 +0200
commit93d1028d75ee4847ebcaa075f56a4d9e7632c33a (patch)
tree3773d084a7d16324d32b175f75cf4a8c5b6f1a98 /dep/cppformat/posix.h
parent55681666b3cc0e33eeb5cdb77e638e68c19f452c (diff)
Dep/CppFormat: Update cppformat to cppformat/cppformat@7859f8123311c1b8f698
* clean up our custom CMakeList.txt
Diffstat (limited to 'dep/cppformat/posix.h')
-rw-r--r--dep/cppformat/posix.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/dep/cppformat/posix.h b/dep/cppformat/posix.h
index 70a0db1a560..722690a8b33 100644
--- a/dep/cppformat/posix.h
+++ b/dep/cppformat/posix.h
@@ -41,10 +41,6 @@
#include "format.h"
-#ifdef FMT_INCLUDE_POSIX_TEST
-# include "test/posix-test.h"
-#endif
-
#ifndef FMT_POSIX
# if defined(_WIN32) && !defined(__MINGW32__)
// Fix warnings about deprecated symbols.
@@ -185,7 +181,7 @@ public:
#endif
// Opens a file.
- BufferedFile(fmt::StringRef filename, fmt::StringRef mode);
+ BufferedFile(CStringRef filename, CStringRef mode);
// Closes the file.
void close();
@@ -197,10 +193,10 @@ public:
// of MinGW that define fileno as a macro.
int (fileno)() const;
- void print(fmt::StringRef format_str, const ArgList &args) {
+ void print(CStringRef format_str, const ArgList &args) {
fmt::print(file_, format_str, args);
}
- FMT_VARIADIC(void, print, fmt::StringRef)
+ FMT_VARIADIC(void, print, CStringRef)
};
// A file. Closed file is represented by a File object with descriptor -1.
@@ -228,7 +224,7 @@ class File {
File() FMT_NOEXCEPT : fd_(-1) {}
// Opens a file and constructs a File object representing this file.
- File(fmt::StringRef path, int oflag);
+ File(CStringRef path, int oflag);
#if !FMT_USE_RVALUE_REFERENCES
// Emulate a move constructor and a move assignment operator if rvalue
@@ -300,7 +296,7 @@ class File {
void close();
// Returns the file size.
- fmt::LongLong size() const;
+ LongLong size() const;
// Attempts to read count bytes from the file into the specified buffer.
std::size_t read(void *buffer, std::size_t count);