Change c files to cpp

Summary: Changed the extensions of c files to cpp and made the project build successfully

Reviewed By: gkassabli

Differential Revision: D6271299

fbshipit-source-id: 66c0e54ccf019d72d1fd0b4d117826e4e84fdc89
This commit is contained in:
Pritesh Nandgaonkar
2017-11-21 10:10:30 -08:00
committed by Facebook Github Bot
parent 15231c3304
commit 02c00f2711
8 changed files with 228 additions and 181 deletions

View File

@@ -161,7 +161,7 @@ with open(root + '/yoga/YGEnums.h', 'w') as f:
f.write('YG_EXTERN_C_END\n')
# write out C body for printing
with open(root + '/yoga/YGEnums.c', 'w') as f:
with open(root + '/yoga/YGEnums.cpp', 'w') as f:
f.write(LICENSE)
f.write('#include "YGEnums.h"\n\n')
for name, values in sorted(ENUMS.items()):