diff options
author | denplusplus <[email protected]> | 2022-02-10 16:47:34 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:47:34 +0300 |
commit | addb3626ed629a8c7d9c8c30e87365b478a8c266 (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /util/system/compat.cpp | |
parent | 57c20d143e8a438cd76b9fdc3ca2e8ee3ac1f32a (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/system/compat.cpp')
-rw-r--r-- | util/system/compat.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/system/compat.cpp b/util/system/compat.cpp index b6e178d5d7f..18fbfa296a7 100644 --- a/util/system/compat.cpp +++ b/util/system/compat.cpp @@ -11,18 +11,18 @@ #include <util/generic/string.h> -#ifdef _win_ +#ifdef _win_ #include "winint.h" #include <io.h> -#endif - +#endif + #ifndef HAVE_NATIVE_GETPROGNAME const char* getprogname() { return GetProgramName().data(); } #endif -#ifdef _win_ +#ifdef _win_ void sleep(i64 len) { Sleep((unsigned long)len * 1000); @@ -35,11 +35,11 @@ void usleep(i64 len) { #include <fcntl.h> int ftruncate(int fd, i64 length) { return _chsize_s(fd, length); -} +} int truncate(const char* name, i64 length) { int fd = ::_open(name, _O_WRONLY); int ret = ftruncate(fd, length); ::close(fd); return ret; } -#endif +#endif |