Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
1b5f0579
Commit
1b5f0579
authored
8 years ago
by
Nicolas Noble
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #7196 from soltanmm/old-mac-donald-had-a-farm
Enable Mac OS X 10.6 compilation
parents
7f936eaa
72838d64
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/grpc/impl/codegen/port_platform.h
+11
-0
11 additions, 0 deletions
include/grpc/impl/codegen/port_platform.h
with
11 additions
and
0 deletions
include/grpc/impl/codegen/port_platform.h
+
11
−
0
View file @
1b5f0579
...
@@ -234,6 +234,7 @@
...
@@ -234,6 +234,7 @@
#define GPR_ARCH_32 1
#define GPR_ARCH_32 1
#endif
/* _LP64 */
#endif
/* _LP64 */
#elif defined(__APPLE__)
#elif defined(__APPLE__)
#include
<Availability.h>
#include
<TargetConditionals.h>
#include
<TargetConditionals.h>
#ifndef _BSD_SOURCE
#ifndef _BSD_SOURCE
#define _BSD_SOURCE
#define _BSD_SOURCE
...
@@ -246,8 +247,18 @@
...
@@ -246,8 +247,18 @@
#define GPR_PTHREAD_TLS 1
#define GPR_PTHREAD_TLS 1
#else
/* TARGET_OS_IPHONE */
#else
/* TARGET_OS_IPHONE */
#define GPR_PLATFORM_STRING "osx"
#define GPR_PLATFORM_STRING "osx"
#ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
#if __MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_7
#define GPR_CPU_IPHONE 1
#define GPR_PTHREAD_TLS 1
#else
/* __MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_7 */
#define GPR_CPU_POSIX 1
#define GPR_GCC_TLS 1
#endif
#else
/* __MAC_OS_X_VERSION_MIN_REQUIRED */
#define GPR_CPU_POSIX 1
#define GPR_CPU_POSIX 1
#define GPR_GCC_TLS 1
#define GPR_GCC_TLS 1
#endif
#define GPR_POSIX_CRASH_HANDLER 1
#define GPR_POSIX_CRASH_HANDLER 1
#endif
#endif
#define GPR_GCC_ATOMIC 1
#define GPR_GCC_ATOMIC 1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment