Commit 71a8204d by Edward Thomson Committed by GitHub

Merge pull request #4346 from pks-t/pks/wo-features-header

features.h: allow building without CMake-generated feature header
parents 5b947b62 26f531d3
...@@ -7,7 +7,10 @@ ...@@ -7,7 +7,10 @@
#ifndef INCLUDE_common_h__ #ifndef INCLUDE_common_h__
#define INCLUDE_common_h__ #define INCLUDE_common_h__
#include "git2/sys/features.h" #ifndef LIBGIT2_NO_FEATURES_H
# include "git2/sys/features.h"
#endif
#include "git2/common.h" #include "git2/common.h"
#include "cc-compat.h" #include "cc-compat.h"
......
...@@ -7,7 +7,10 @@ ...@@ -7,7 +7,10 @@
#ifndef INCLUDE_posix__unix_h__ #ifndef INCLUDE_posix__unix_h__
#define INCLUDE_posix__unix_h__ #define INCLUDE_posix__unix_h__
#include "git2/sys/features.h" #ifndef LIBGIT2_NO_FEATURES_H
# include "git2/sys/features.h"
#endif
#include <stdio.h> #include <stdio.h>
#include <dirent.h> #include <dirent.h>
#include <sys/param.h> #include <sys/param.h>
......
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