Move pthread include.

Based on pull request feedback. See commit 60c5222 for why the pthread
header is necessary.
This commit is contained in:
Tom Hughes 2015-07-30 09:30:31 -07:00
parent 93ba933363
commit c6095505dc
2 changed files with 4 additions and 2 deletions

View file

@ -30,6 +30,10 @@
#ifndef GOOGLE_PROTOBUF_STUBS_MUTEX_H_
#define GOOGLE_PROTOBUF_STUBS_MUTEX_H_
#ifdef GOOGLE_PROTOBUF_NO_THREADLOCAL
#include <pthread.h>
#endif
#include <google/protobuf/stubs/macros.h>
// ===================================================================

View file

@ -115,8 +115,6 @@ GOOGLE_PROTOBUF_PLATFORM_ERROR
// TLS support on android.
// iOS also does not support the __thread keyword.
#define GOOGLE_PROTOBUF_NO_THREADLOCAL
#include <pthread.h>
#endif
#endif // GOOGLE_PROTOBUF_PLATFORM_MACROS_H_