Commit 322086f9 by Vicent Marti

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>
parent c5b97d5a
#ifndef INCLUDE_git_index_h__ #ifndef INCLUDE_git_index_h__
#define INCLUDE_git_index_h__ #define INCLUDE_git_index_h__
#include <stdint.h>
#include "common.h" #include "common.h"
#include "oid.h" #include "oid.h"
...@@ -20,8 +19,8 @@ typedef struct git_index git_index; ...@@ -20,8 +19,8 @@ typedef struct git_index git_index;
/** Time used in a git index entry */ /** Time used in a git index entry */
typedef struct { typedef struct {
uint32_t seconds; unsigned int seconds;
uint32_t nanoseconds; unsigned int nanoseconds;
} git_index_time; } git_index_time;
/** Memory representation of a file entry in the index. */ /** Memory representation of a file entry in the index. */
...@@ -29,17 +28,17 @@ typedef struct git_index_entry { ...@@ -29,17 +28,17 @@ typedef struct git_index_entry {
git_index_time ctime; git_index_time ctime;
git_index_time mtime; git_index_time mtime;
uint32_t dev; unsigned int dev;
uint32_t ino; unsigned int ino;
uint32_t mode; unsigned int mode;
uint32_t uid; unsigned int uid;
uint32_t gid; unsigned int gid;
uint32_t file_size; unsigned int file_size;
git_oid oid; git_oid oid;
uint16_t flags; unsigned short flags;
uint16_t flags_extended; unsigned short flags_extended;
char *path; char *path;
} git_index_entry; } git_index_entry;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment