summaryrefslogtreecommitdiff
path: root/src/git
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-11-24 17:46:46 +0200
committerVicent Marti <tanoku@gmail.com>2010-11-24 17:56:30 +0200
commit322086f9b1291b05de7197ac53491ad1ae79ad2e (patch)
treea1dde75337717ba5c568560870f5d044d58fa268 /src/git
parentc5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc (diff)
downloadlibgit2-322086f9b1291b05de7197ac53491ad1ae79ad2e.tar.gz
Do not use STDINT types in public headers
Old versions of MSVC don't have such types available. Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/git')
-rw-r--r--src/git/index.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/git/index.h b/src/git/index.h
index 6cf270baa..910dd498b 100644
--- a/src/git/index.h
+++ b/src/git/index.h
@@ -1,7 +1,6 @@
#ifndef INCLUDE_git_index_h__
#define INCLUDE_git_index_h__
-#include <stdint.h>
#include "common.h"
#include "oid.h"
@@ -20,8 +19,8 @@ typedef struct git_index git_index;
/** Time used in a git index entry */
typedef struct {
- uint32_t seconds;
- uint32_t nanoseconds;
+ unsigned int seconds;
+ unsigned int nanoseconds;
} git_index_time;
/** Memory representation of a file entry in the index. */
@@ -29,17 +28,17 @@ typedef struct git_index_entry {
git_index_time ctime;
git_index_time mtime;
- uint32_t dev;
- uint32_t ino;
- uint32_t mode;
- uint32_t uid;
- uint32_t gid;
- uint32_t file_size;
+ unsigned int dev;
+ unsigned int ino;
+ unsigned int mode;
+ unsigned int uid;
+ unsigned int gid;
+ unsigned int file_size;
git_oid oid;
- uint16_t flags;
- uint16_t flags_extended;
+ unsigned short flags;
+ unsigned short flags_extended;
char *path;
} git_index_entry;