Skip to content

Commit 7899926

Browse files
Merge branch 'mrschmidt/fieldvalue' of github.com:firebase/firebase-cpp-sdk into mrschmidt/fieldvalue
2 parents e024ee1 + 268b1e9 commit 7899926

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

firestore/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,11 @@ target_compile_definitions(firebase_firestore
366366
${FIREBASE_FIRESTORE_CPP_DEFINES}
367367
)
368368

369+
# Set the Nanopb preprocessor definitions to match those used by the iOS SDK.
370+
target_compile_definitions(firebase_firestore
371+
PUBLIC -DPB_FIELD_32BIT -DPB_ENABLE_MALLOC -DPB_NO_PACKED_STRUCTS
372+
)
373+
369374
if(ANDROID)
370375
firebase_cpp_proguard_file(firestore)
371376

0 commit comments

Comments
 (0)