File tree 2 files changed +5
-19
lines changed 2 files changed +5
-19
lines changed Original file line number Diff line number Diff line change @@ -287,6 +287,8 @@ GIT_EXTERN(int) git_index_add_frombuffer(
287
287
#define GIT_OBJ_OFS_DELTA GIT_OBJECT_OFS_DELTA
288
288
#define GIT_OBJ_REF_DELTA GIT_OBJECT_REF_DELTA
289
289
290
+ typedef git_object_size_t git_off_t ;
291
+
290
292
GIT_EXTERN (size_t ) git_object__size (git_object_t type );
291
293
292
294
/**@}*/
Original file line number Diff line number Diff line change @@ -36,31 +36,15 @@ GIT_BEGIN_DECL
36
36
#include <stdint.h>
37
37
#endif
38
38
39
+ /** Time in seconds from the Unix epoch */
39
40
#if defined(_MSC_VER )
40
-
41
- typedef __int64 git_off_t ;
42
41
typedef __time64_t git_time_t ;
43
-
44
42
#elif defined(__MINGW32__ )
45
-
46
- typedef off64_t git_off_t ;
47
43
typedef __time64_t git_time_t ;
48
-
49
44
#elif defined(__HAIKU__ )
50
-
51
- typedef __haiku_std_int64 git_off_t ;
52
45
typedef __haiku_std_int64 git_time_t ;
53
-
54
- #else /* POSIX */
55
-
56
- /*
57
- * Note: Can't use off_t since if a client program includes <sys/types.h>
58
- * before us (directly or indirectly), they'll get 32 bit off_t in their client
59
- * app, even though /we/ define _FILE_OFFSET_BITS=64.
60
- */
61
- typedef int64_t git_off_t ;
62
- typedef int64_t git_time_t ; /**< time in seconds from epoch */
63
-
46
+ #else
47
+ typedef int64_t git_time_t ;
64
48
#endif
65
49
66
50
/** The maximum size of an object */
You can’t perform that action at this time.
0 commit comments