diff options
Diffstat (limited to 'ppapi/generators/idl_thunk.py')
-rwxr-xr-x | ppapi/generators/idl_thunk.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ppapi/generators/idl_thunk.py b/ppapi/generators/idl_thunk.py index 023335c..d06defb 100755 --- a/ppapi/generators/idl_thunk.py +++ b/ppapi/generators/idl_thunk.py @@ -460,9 +460,7 @@ class TGen(GeneratorByFile): includes = ['ppapi/c/pp_errors.h', 'ppapi/shared_impl/tracked_callback.h', 'ppapi/thunk/enter.h', - 'ppapi/thunk/ppb_instance_api.h', - 'ppapi/thunk/resource_creation_api.h', - 'ppapi/thunk/thunk.h'] + 'ppapi/thunk/ppapi_thunk_export.h'] includes.append(_GetHeaderFileName(filenode)) for api in meta.Apis(): includes.append('%s' % api.lower()) @@ -547,10 +545,11 @@ class TGen(GeneratorByFile): out.Write('} // namespace\n') out.Write('\n') for thunk_type, thunk_name in version_list: - thunk_decl = 'const %s* Get%s_Thunk() {\n' % (thunk_type, thunk_type) + thunk_decl = ('PPAPI_THUNK_EXPORT const %s* Get%s_Thunk() {\n' % + (thunk_type, thunk_type)) if len(thunk_decl) > 80: - thunk_decl = 'const %s*\n Get%s_Thunk() {\n' % (thunk_type, - thunk_type) + thunk_decl = ('PPAPI_THUNK_EXPORT const %s*\n Get%s_Thunk() {\n' % + (thunk_type, thunk_type)) out.Write(thunk_decl) out.Write(' return &%s;\n' % thunk_name) out.Write('}\n') |