Commit 84bc7d9f authored by avi's avatar avi Committed by Commit bot

Switch to standard integer types in tools/json_schema_compiler/.

BUG=138542
TBR=rdevlin.cronin@chromium.org

Review URL: https://codereview.chromium.org/1551493002

Cr-Commit-Position: refs/heads/master@{#366917}
parent 5dfc03cc
......@@ -163,8 +163,6 @@ class _APIHGenerator(object):
c.Append('#include <string>')
c.Append()
c.Append('#include "base/basictypes.h"')
c.Append()
c.Append("class ExtensionFunctionRegistry;")
c.Append()
c.Concat(cpp_util.OpenNamespace(self._bundle._cpp_namespace))
......
......@@ -85,7 +85,7 @@ class CppTypeGenerator(object):
elif type_.property_type == PropertyType.INTEGER:
cpp_type = 'int'
elif type_.property_type == PropertyType.INT64:
cpp_type = 'int64'
cpp_type = 'int64_t'
elif type_.property_type == PropertyType.DOUBLE:
cpp_type = 'double'
elif type_.property_type == PropertyType.STRING:
......
......@@ -50,11 +50,12 @@ class _Generator(object):
(c.Append('#ifndef %s' % ifndef_name)
.Append('#define %s' % ifndef_name)
.Append()
.Append('#include <stdint.h>')
.Append()
.Append('#include <map>')
.Append('#include <string>')
.Append('#include <vector>')
.Append()
.Append('#include "base/basictypes.h"')
.Append('#include "base/logging.h"')
.Append('#include "base/memory/linked_ptr.h"')
.Append('#include "base/memory/scoped_ptr.h"')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment