We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b13f0da + aa5ea47 commit 86201b9Copy full SHA for 86201b9
src/thread-utils.h
@@ -7,6 +7,12 @@
7
#ifndef INCLUDE_thread_utils_h__
8
#define INCLUDE_thread_utils_h__
9
10
+#if defined(__GNUC__) && defined(GIT_THREADS)
11
+# if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1))
12
+# error Atomic primitives do not exist on this version of gcc; configure libgit2 with -DTHREADSAFE=OFF
13
+# endif
14
+#endif
15
+
16
/* Common operations even if threading has been disabled */
17
typedef struct {
18
#if defined(GIT_WIN32)
0 commit comments