Explorar o código

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 %!s(int64=7) %!d(string=hai) anos
pai
achega
6fd2ae7e45
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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 {