Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
2fa80cdd
Commit
2fa80cdd
authored
Apr 03, 2014
by
James Zern
Committed by
Gerrit Code Review
Apr 03, 2014
Browse files
Merge "tools_common.h: (msvs) avoid redefining off_t"
parents
1e00f6c3
dae4cfcb
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools_common.h
View file @
2fa80cdd
...
...
@@ -22,10 +22,12 @@
#endif
#if defined(_MSC_VER)
/* MSVS doesn't define off_t, and uses _f{seek,tell}i64. */
typedef
__int64
off_t
;
/* MSVS uses _f{seek,tell}i64. */
#define fseeko _fseeki64
#define ftello _ftelli64
typedef
long
_off_t
;
// NOLINT - MSVS compatible type
typedef
__int64
off_t
;
// fseeki64 compatible type
#define _OFF_T_DEFINED
#elif defined(_WIN32)
/* MinGW defines off_t as long and uses f{seek,tell}o64/off64_t for large
* files. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment