Add additional include guard in platform specific .h files

R=ager@google.com

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9264006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3433 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
sgjesse@google.com
2012-01-19 13:37:26 +00:00
parent d205c37d48
commit 3a02bcfc04
9 changed files with 38 additions and 2 deletions
+4
View File
@@ -5,6 +5,10 @@
#ifndef BIN_EVENTHANDLER_LINUX_H_
#define BIN_EVENTHANDLER_LINUX_H_
#if !defined(BIN_EVENTHANDLER_H_)
#error Do not include eventhandler_linux.h directly; use eventhandler.h instead.
#endif
#include <unistd.h>
#include <sys/socket.h>
+5 -1
View File
@@ -1,10 +1,14 @@
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#ifndef BIN_EVENTHANDLER_MACOS_H_
#define BIN_EVENTHANDLER_MACOS_H_
#if !defined(BIN_EVENTHANDLER_H_)
#error Do not include eventhandler_macos.h directly; use eventhandler.h instead.
#endif
#include <unistd.h>
#include <sys/socket.h>
+5 -1
View File
@@ -1,10 +1,14 @@
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#ifndef BIN_EVENTHANDLER_WIN_H_
#define BIN_EVENTHANDLER_WIN_H_
#if !defined(BIN_EVENTHANDLER_H_)
#error Do not include eventhandler_win.h directly; use eventhandler.h instead.
#endif
#include <winsock2.h>
#include <mswsock.h>
+4
View File
@@ -5,6 +5,10 @@
#ifndef BIN_THREAD_POOL_LINUX_H_
#define BIN_THREAD_POOL_LINUX_H_
#if !defined(BIN_THREAD_POOL_H_)
#error Do not include thread_pool_linux.h directly; use thread_pool.h instead.
#endif
#include <pthread.h>
#include "platform/globals.h"
+4
View File
@@ -5,6 +5,10 @@
#ifndef BIN_THREAD_POOL_MACOS_H_
#define BIN_THREAD_POOL_MACOS_H_
#if !defined(BIN_THREAD_POOL_H_)
#error Do not include thread_pool_macos.h directly; use thread_pool.h instead.
#endif
#include <pthread.h>
#include "platform/globals.h"
+4
View File
@@ -5,6 +5,10 @@
#ifndef BIN_THREAD_POOL_WIN_H_
#define BIN_THREAD_POOL_WIN_H_
#if !defined(BIN_THREAD_POOL_H_)
#error Do not include thread_pool_win.h directly; use thread_pool.h instead.
#endif
#include "platform/globals.h"
class ThreadPoolData {
+4
View File
@@ -5,6 +5,10 @@
#ifndef PLATFORM_THREAD_LINUX_H_
#define PLATFORM_THREAD_LINUX_H_
#if !defined(PLATFORM_THREAD_H_)
#error Do not include thread_linux.h directly; use thread.h instead.
#endif
#include <pthread.h>
#include "platform/assert.h"
+4
View File
@@ -5,6 +5,10 @@
#ifndef PLATFORM_THREAD_MACOS_H_
#define PLATFORM_THREAD_MACOS_H_
#if !defined(PLATFORM_THREAD_H_)
#error Do not include thread_macos.h directly; use thread.h instead.
#endif
#include <pthread.h>
#include "platform/globals.h"
+4
View File
@@ -5,6 +5,10 @@
#ifndef PLATFORM_THREAD_WIN_H_
#define PLATFORM_THREAD_WIN_H_
#if !defined(PLATFORM_THREAD_H_)
#error Do not include thread_win.h directly; use thread.h instead.
#endif
#include "platform/globals.h"
namespace dart {