Guard header files in utils with #ifdef and #endif

Some header files in utils missing #ifdef and #endif and this caused including
header files multiple times.

This patch fix it.

BUG=dawn:72

Change-Id: Ib28b1a1cef91e49a5754ec6b3d66327076070d99
Reviewed-on: https://dawn-review.googlesource.com/c/3461
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Yan, Shaobo 2018-12-20 11:21:04 +00:00 committed by Commit Bot service account
parent c8bf89ddf0
commit 21ed12045b
2 changed files with 10 additions and 0 deletions

View File

@ -12,6 +12,9 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef UTILS_DAWNHELPERS_H_
#define UTILS_DAWNHELPERS_H_
#include <dawn/dawncpp.h> #include <dawn/dawncpp.h>
#include <initializer_list> #include <initializer_list>
@ -98,3 +101,5 @@ namespace utils {
std::initializer_list<BindingInitializationHelper> bindingsInitializer); std::initializer_list<BindingInitializationHelper> bindingsInitializer);
} // namespace utils } // namespace utils
#endif // UTILS_DAWNHELPERS_H_

View File

@ -12,7 +12,12 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef UTILS_SYSTEMUTILS_H_
#define UTILS_SYSTEMUTILS_H_
namespace utils { namespace utils {
void USleep(unsigned int usecs); void USleep(unsigned int usecs);
} }
#endif // UTILS_SYSTEMUTILS_H_