mirror of
https://git.proxmox.com/git/libgit2
synced 2025-07-11 20:13:13 +00:00
Merge pull request #4135 from libgit2/ethomson/ancient_gcc_not_threadsafe
Provide error on gcc < 4.1 when THREADSAFE
This commit is contained in:
commit
86201b92c3
@ -7,6 +7,12 @@
|
|||||||
#ifndef INCLUDE_thread_utils_h__
|
#ifndef INCLUDE_thread_utils_h__
|
||||||
#define INCLUDE_thread_utils_h__
|
#define INCLUDE_thread_utils_h__
|
||||||
|
|
||||||
|
#if defined(__GNUC__) && defined(GIT_THREADS)
|
||||||
|
# if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1))
|
||||||
|
# error Atomic primitives do not exist on this version of gcc; configure libgit2 with -DTHREADSAFE=OFF
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Common operations even if threading has been disabled */
|
/* Common operations even if threading has been disabled */
|
||||||
typedef struct {
|
typedef struct {
|
||||||
#if defined(GIT_WIN32)
|
#if defined(GIT_WIN32)
|
||||||
|
Loading…
Reference in New Issue
Block a user