Skip to content

Commit

Permalink
Merge pull request #10743 from brad0/21_openbsd_platform_macros
Browse files Browse the repository at this point in the history
21.x No longer define no_threadlocal on OpenBSD
  • Loading branch information
fowles committed Oct 11, 2022
2 parents 0ee5525 + a971d06 commit 5d90ef2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/google/protobuf/stubs/platform_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ GOOGLE_PROTOBUF_PLATFORM_ERROR

#undef GOOGLE_PROTOBUF_PLATFORM_ERROR

#if defined(GOOGLE_PROTOBUF_OS_ANDROID) || defined(GOOGLE_PROTOBUF_OS_IPHONE) || defined(__OpenBSD__)
#if defined(GOOGLE_PROTOBUF_OS_ANDROID) || defined(GOOGLE_PROTOBUF_OS_IPHONE)
// Android ndk does not support the __thread keyword very well yet. Here
// we use pthread_key_create()/pthread_getspecific()/... methods for
// TLS support on android.
// iOS and OpenBSD also do not support the __thread keyword.
// iOS also does not support the __thread keyword.
#define GOOGLE_PROTOBUF_NO_THREADLOCAL
#endif

Expand Down

0 comments on commit 5d90ef2

Please sign in to comment.