浏览代码

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.
Thomas Van Lenten 7 年之前
父节点
当前提交
6fd2ae7e45
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      objectivec/GPBMessage_PackagePrivate.h

+ 6 - 0
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 {