Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Unified Diff: mojo/public/c/include/mojo/bindings/internal/util.h

Issue 2232833003: Change the canonical way to include the C bindings headers to <mojo/bindings/*.h>. (Closed) Base URL: https://github.com/domokit/mojo.git@work791_mojo_tests
Patch Set: rebased Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/public/c/include/mojo/bindings/internal/util.h
diff --git a/mojo/public/c/bindings/lib/util.h b/mojo/public/c/include/mojo/bindings/internal/util.h
similarity index 86%
rename from mojo/public/c/bindings/lib/util.h
rename to mojo/public/c/include/mojo/bindings/internal/util.h
index 9232d2fa545caac4c54e6bfe3da489a8c1adb377..1823ea4765aaf59ad4c9864c68e12817cca895f8 100644
--- a/mojo/public/c/bindings/lib/util.h
+++ b/mojo/public/c/include/mojo/bindings/internal/util.h
@@ -2,10 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef MOJO_PUBLIC_C_BINDINGS_LIB_UTIL_H_
-#define MOJO_PUBLIC_C_BINDINGS_LIB_UTIL_H_
+#ifndef MOJO_PUBLIC_C_INCLUDE_MOJO_BINDINGS_INTERNAL_UTIL_H_
+#define MOJO_PUBLIC_C_INCLUDE_MOJO_BINDINGS_INTERNAL_UTIL_H_
#include <mojo/macros.h>
+#include <stdint.h>
// Rounds-up |num| to 8. The result is undefined if this results in an overflow.
#define MOJOM_INTERNAL_ROUND_TO_8(num) (((num) + 7) & ~7)
@@ -34,4 +35,4 @@ struct MojomValidationContext {
// TODO(vardhan): Include an error string? How big should it be?
};
-#endif // MOJO_PUBLIC_C_BINDINGS_LIB_UTIL_H_
+#endif // MOJO_PUBLIC_C_INCLUDE_MOJO_BINDINGS_INTERNAL_UTIL_H_
« no previous file with comments | « mojo/public/c/include/mojo/bindings/internal/type_descriptor.h ('k') | mojo/public/c/include/mojo/bindings/map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698