summaryrefslogtreecommitdiff
path: root/src/posix.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-08-30 11:32:33 -0700
committerVicent Marti <tanoku@gmail.com>2011-08-30 11:32:33 -0700
commit2fcf9c82735cec8874d5e12ed18380c77d629706 (patch)
tree1e56a1cf0ff6e6c5db173eebd8577c77d6bb857c /src/posix.h
parent6f1d23b29fa00b5f46cd100d9c3d98f7cce014d6 (diff)
downloadlibgit2-2fcf9c82735cec8874d5e12ed18380c77d629706.tar.gz
posix: Fix undeclared prototype
Diffstat (limited to 'src/posix.h')
-rw-r--r--src/posix.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/posix.h b/src/posix.h
index 622bf8351..f1424f8d3 100644
--- a/src/posix.h
+++ b/src/posix.h
@@ -8,12 +8,6 @@
#include <fcntl.h>
#include <time.h>
-#ifdef GIT_WIN32
-# include "win32/posix.h"
-#else
-# include "unix/posix.h"
-#endif
-
#define S_IFGITLINK 0160000
#define S_ISGITLINK(m) (((m) & S_IFMT) == S_IFGITLINK)
@@ -23,7 +17,6 @@
typedef int git_file;
-
/**
* Standard POSIX Methods
*
@@ -51,4 +44,13 @@ extern int p_getcwd(char *buffer_out, size_t size);
#define p_chmod(p,m) chmod(p, m)
#define p_close(fd) close(fd)
+/**
+ * Platform-dependent methods
+ */
+#ifdef GIT_WIN32
+# include "win32/posix.h"
+#else
+# include "unix/posix.h"
+#endif
+
#endif