diff options
author | Nicolas Despres <nicolas.despres@mobile-devices.fr> | 2011-03-22 07:48:16 (GMT) |
---|---|---|
committer | Nicolas Despres <nicolas.despres@mobile-devices.fr> | 2011-03-22 07:48:16 (GMT) |
commit | 52925ea07e4bfd98e6b3febbc0594f5da634f5d3 (patch) | |
tree | 8b1c2514425746ad7aa27ab218c263ce29a195c6 /src | |
parent | 269658384e91c3b36ac871ddb2967d41f18db962 (diff) | |
download | Ninja-52925ea07e4bfd98e6b3febbc0594f5da634f5d3.zip Ninja-52925ea07e4bfd98e6b3febbc0594f5da634f5d3.tar.gz Ninja-52925ea07e4bfd98e6b3febbc0594f5da634f5d3.tar.bz2 |
Add missing CPP guards.
Diffstat (limited to 'src')
-rw-r--r-- | src/build_log.h | 5 | ||||
-rw-r--r-- | src/hash_map.h | 5 | ||||
-rw-r--r-- | src/subprocess.h | 5 | ||||
-rw-r--r-- | src/test.h | 5 | ||||
-rw-r--r-- | src/util.h | 5 |
5 files changed, 25 insertions, 0 deletions
diff --git a/src/build_log.h b/src/build_log.h index be12d85..a671467 100644 --- a/src/build_log.h +++ b/src/build_log.h @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +#ifndef NINJA_BUILD_LOG_H_ +#define NINJA_BUILD_LOG_H_ + #include <map> #include <string> using namespace std; @@ -61,3 +64,5 @@ struct BuildLog { BuildConfig* config_; bool needs_recompaction_; }; + +#endif // NINJA_BUILD_LOG_H_ diff --git a/src/hash_map.h b/src/hash_map.h index 45a83a9..dd63c01 100644 --- a/src/hash_map.h +++ b/src/hash_map.h @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +#ifndef NINJA_MAP_H_ +#define NINJA_MAP_H_ + #include <ext/hash_map> using __gnu_cxx::hash_map; @@ -24,3 +27,5 @@ struct hash<std::string> { } }; } + +#endif // NINJA_MAP_H_ diff --git a/src/subprocess.h b/src/subprocess.h index 35b7914..acdb625 100644 --- a/src/subprocess.h +++ b/src/subprocess.h @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +#ifndef NINJA_SUBPROCESS_H_ +#define NINJA_SUBPROCESS_H_ + #include <string> #include <vector> #include <queue> @@ -54,3 +57,5 @@ struct SubprocessSet { vector<Subprocess*> running_; queue<Subprocess*> finished_; }; + +#endif // NINJA_SUBPROCESS_H_ @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +#ifndef NINJA_TEST_H_ +#define NINJA_TEST_H_ + #include <gtest/gtest.h> #include "ninja.h" @@ -53,3 +56,5 @@ struct VirtualFileSystem : public DiskInterface { typedef map<string, Entry> FileMap; FileMap files_; }; + +#endif // NINJA_TEST_H_ @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +#ifndef NINJA_UTIL_H_ +#define NINJA_UTIL_H_ + // Dump a backtrace to stderr. // |skip_frames| is how many frames to skip; // DumpBacktrace implicitly skips itself already. @@ -22,3 +25,5 @@ void Fatal(const char* msg, ...); // Log an error message. void Error(const char* msg, ...); + +#endif // NINJA_UTIL_H_ |