diff options
author | Patrick Steinhardt <ps@pks.im> | 2019-07-05 14:30:48 +0200 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2019-07-05 14:30:48 +0200 |
commit | 960d2a070f2d1647026d883fd04d8e0a040d07dd (patch) | |
tree | c8a210f70bc4dcfffb2189a31288c04170d60bd0 /examples/index-pack.c | |
parent | 3be09b6c0295c834792d66c4d38d0e1a1c53e71c (diff) | |
download | libgit2-960d2a070f2d1647026d883fd04d8e0a040d07dd.tar.gz |
examples: consolidate includes into "common.h"
Consolidate all standard includes and defines into "common.h". This lets
us avoid having to handle platform-specific things in multiple places.
Diffstat (limited to 'examples/index-pack.c')
-rw-r--r-- | examples/index-pack.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/examples/index-pack.c b/examples/index-pack.c index 0941e09e7..2181f43f3 100644 --- a/examples/index-pack.c +++ b/examples/index-pack.c @@ -1,21 +1,5 @@ #include "common.h" -#include <sys/types.h> -#include <sys/stat.h> -#include <fcntl.h> -#ifdef _WIN32 -# include <io.h> -# include <Windows.h> - -# define open _open -# define read _read -# define close _close - -#define ssize_t int -#else -# include <unistd.h> -#endif - /* * This could be run in the main loop whilst the application waits for * the indexing to finish in a worker thread |