aboutsummaryrefslogtreecommitdiff
path: root/objectivec/GPBMessage_PackagePrivate.h
diff options
context:
space:
mode:
authorJonathan Dierksen <jedierksen@gmail.com>2018-01-22 13:26:39 -0800
committerThomas Van Lenten <thomasvl@google.com>2018-01-22 16:26:39 -0500
commita721bf6d294915b412e4ba6b5d92a9b84c6bfef9 (patch)
treee2650a8219b383a4e622df32a6294b3418a00594 /objectivec/GPBMessage_PackagePrivate.h
parent47b7d2c7cadf74ceec90fc5042232819cd0dd557 (diff)
downloadprotobuf-a721bf6d294915b412e4ba6b5d92a9b84c6bfef9.tar.gz
protobuf-a721bf6d294915b412e4ba6b5d92a9b84c6bfef9.tar.bz2
protobuf-a721bf6d294915b412e4ba6b5d92a9b84c6bfef9.zip
Migrate away from deprecated OSAtomic APIs. (#4184)
* Migrate away from deprecated OSAtomic APIs.
Diffstat (limited to 'objectivec/GPBMessage_PackagePrivate.h')
-rw-r--r--objectivec/GPBMessage_PackagePrivate.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/objectivec/GPBMessage_PackagePrivate.h b/objectivec/GPBMessage_PackagePrivate.h
index 90834d40..c5501c85 100644
--- a/objectivec/GPBMessage_PackagePrivate.h
+++ b/objectivec/GPBMessage_PackagePrivate.h
@@ -34,7 +34,7 @@
#import "GPBMessage.h"
-#import <libkern/OSAtomic.h>
+#import <stdatomic.h>
#import "GPBBootstrap.h"
@@ -70,7 +70,7 @@ typedef struct GPBMessage_Storage *GPBMessage_StoragePtr;
// Use of readOnlySemaphore_ must be prefaced by a call to
// GPBPrepareReadOnlySemaphore to ensure it has been created. This allows
// readOnlySemaphore_ to be only created when actually needed.
- dispatch_semaphore_t readOnlySemaphore_;
+ _Atomic(dispatch_semaphore_t) readOnlySemaphore_;
}
// Gets an extension value without autocreating the result if not found. (i.e.