Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
e9d9e56a
Commit
e9d9e56a
authored
Oct 26, 2016
by
Feng Xiao
Committed by
GitHub
Oct 26, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2290 from ramrunner/OpenBSDsupport
define no_threadlocal on OpenBSD
parents
734930f9
bfc1299a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
platform_macros.h
src/google/protobuf/stubs/platform_macros.h
+2
-2
No files found.
src/google/protobuf/stubs/platform_macros.h
View file @
e9d9e56a
...
@@ -114,11 +114,11 @@ GOOGLE_PROTOBUF_PLATFORM_ERROR
...
@@ -114,11 +114,11 @@ GOOGLE_PROTOBUF_PLATFORM_ERROR
#undef GOOGLE_PROTOBUF_PLATFORM_ERROR
#undef GOOGLE_PROTOBUF_PLATFORM_ERROR
#if defined(GOOGLE_PROTOBUF_OS_ANDROID) || defined(GOOGLE_PROTOBUF_OS_IPHONE)
#if defined(GOOGLE_PROTOBUF_OS_ANDROID) || defined(GOOGLE_PROTOBUF_OS_IPHONE)
|| defined(__OpenBSD__)
// Android ndk does not support the __thread keyword very well yet. Here
// Android ndk does not support the __thread keyword very well yet. Here
// we use pthread_key_create()/pthread_getspecific()/... methods for
// we use pthread_key_create()/pthread_getspecific()/... methods for
// TLS support on android.
// TLS support on android.
// iOS a
lso does
not support the __thread keyword.
// iOS a
nd OpenBSD also do
not support the __thread keyword.
#define GOOGLE_PROTOBUF_NO_THREADLOCAL
#define GOOGLE_PROTOBUF_NO_THREADLOCAL
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment