summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/common.h b/src/common.h
index 5986a6568..f4ea1ebf7 100644
--- a/src/common.h
+++ b/src/common.h
@@ -1,3 +1,9 @@
+/*
+ * Copyright (C) 2009-2011 the libgit2 contributors
+ *
+ * This file is part of libgit2, distributed under the GNU GPL v2 with
+ * a Linking Exception. For full terms see the included COPYING file.
+ */
#ifndef INCLUDE_common_h__
#define INCLUDE_common_h__
@@ -26,18 +32,20 @@
# include "win32/msvc-compat.h"
# include "win32/mingw-compat.h"
# ifdef GIT_THREADS
-# include "win32/pthread.h"
+# include "win32/pthread.h"
#endif
# define snprintf _snprintf
+#ifndef _SSIZE_T_DEFINED
typedef SSIZE_T ssize_t;
+#endif
#else
# include <unistd.h>
# ifdef GIT_THREADS
-# include <pthread.h>
+# include <pthread.h>
# endif
#endif