aboutsummaryrefslogtreecommitdiffhomepage
path: root/objectivec
diff options
context:
space:
mode:
authorGravatar Thomas Van Lenten <thomasvl@google.com>2018-01-23 13:37:43 -0500
committerGravatar Thomas Van Lenten <thomasvl@google.com>2018-01-25 12:18:39 -0500
commit6fd2ae7e45584493446b5afe13e8e998e6c9338c (patch)
treeda8f1185363be7a745e05177232775e8dbad3774 /objectivec
parent1d02e45468630f566e730b2ac3b79a9f2c4533dd (diff)
Bring back import of OSAtomic.
Followup to https://github.com/google/protobuf/pull/4184, keep the import to not break any existing generated code that isn't regenerated when they update to the newer protobuf code.
Diffstat (limited to 'objectivec')
-rw-r--r--objectivec/GPBMessage_PackagePrivate.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/objectivec/GPBMessage_PackagePrivate.h b/objectivec/GPBMessage_PackagePrivate.h
index c5501c85..820bb7b4 100644
--- a/objectivec/GPBMessage_PackagePrivate.h
+++ b/objectivec/GPBMessage_PackagePrivate.h
@@ -36,6 +36,12 @@
#import <stdatomic.h>
+// TODO: Remove this import. Older generated code use the OSAtomic* apis,
+// so anyone that hasn't regenerated says building by having this. After
+// enough time has passed, this likely can be removed as folks should have
+// regenerated.
+#import <libkern/OSAtomic.h>
+
#import "GPBBootstrap.h"
typedef struct GPBMessage_Storage {