Fix Linux compile errors.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@150 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2010-12-07 01:30:26 +00:00
parent e826c9b1a0
commit 871a8a7770
54 changed files with 84 additions and 53 deletions

View File

@ -121,14 +121,14 @@ def make_ctocpp_impl(header, clsname, impl):
result += includes+'\n'+resultingimpl+'\n'
result += wrap_code('#ifdef _DEBUG\n'+ \
'long CefCToCpp<'+clsname+'CToCpp, '+clsname+', '+capiname+'>::DebugObjCt = 0;\n'+ \
'template<> long CefCToCpp<'+clsname+'CToCpp, '+clsname+', '+capiname+'>::DebugObjCt = 0;\n'+ \
'#endif\n')
return result
def write_ctocpp_impl(header, clsname, dir, backup):
file = dir+'\\'+get_capi_name(clsname[3:], False)+'_ctocpp.cc'
file = dir+os.sep+get_capi_name(clsname[3:], False)+'_ctocpp.cc'
if file_exists(file):
oldcontents = read_file(file)