Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 13, 2025
1 parent b875fd3 commit e799ace
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/libImaging/Imaging.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,26 +153,26 @@ struct ImagingPaletteInstance {
#define IMAGING_ARENA_UNLOCK(m)

#if defined(__cplusplus)
#define IMAGING_ARENA_TLS thread_local
#define IMAGING_ARENA_TLS thread_local
#elif defined(HAVE_THREAD_LOCAL)
#define IMAGING_ARENA_TLS thread_local
#define IMAGING_ARENA_TLS thread_local
#elif defined(HAVE__THREAD_LOCAL)
#define IMAGING_ARENA_TLS _Thread_local
#define IMAGING_ARENA_TLS _Thread_local
#elif defined(HAVE___THREAD)
#define IMAGING_ARENA_TLS __thread
#define IMAGING_ARENA_TLS __thread
#elif defined(HAVE___DECLSPEC_THREAD_)
#define IMAGING_ARENA_TLS __declspec(thread)
#define IMAGING_ARENA_TLS __declspec(thread)
#elif defined(Py_GIL_DISABLED)
#define IMAGING_ARENA_TLS
#define IMAGING_ARENA_LOCKING
#define IMAGING_ARENA_TLS
#define IMAGING_ARENA_LOCKING

#undef IMAGING_ARENA_LOCK
#undef IMAGING_ARENA_UNLOCK
#undef IMAGING_ARENA_LOCK
#undef IMAGING_ARENA_UNLOCK

#define IMAGING_ARENA_LOCK(m) PyMutex_Lock(m)
#define IMAGING_ARENA_UNLOCK(m) PyMutex_Unlock(m)
#define IMAGING_ARENA_LOCK(m) PyMutex_Lock(m)
#define IMAGING_ARENA_UNLOCK(m) PyMutex_Unlock(m)
#else
#define IMAGING_ARENA_TLS
#define IMAGING_ARENA_TLS
#endif

typedef struct ImagingMemoryArena {
Expand Down

0 comments on commit e799ace

Please sign in to comment.