diff options
| author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-05-25 21:40:11 +0000 | 
|---|---|---|
| committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-05-25 21:40:11 +0000 | 
| commit | 0e1b238faec0980150c202e81b2bf8f63ba2ca8e (patch) | |
| tree | f365d16fe755e44799dd649666ab47087900d2be | |
| parent | 75a0d2379aee05e59f0829b04240b9307469e727 (diff) | |
tests: Replaced #pragma once with header guards
git-svn-id: http://pugixml.googlecode.com/svn/trunk@450 99668b35-9821-0410-8761-19e4c4f06640
| -rw-r--r-- | tests/allocator.hpp | 5 | ||||
| -rw-r--r-- | tests/common.hpp | 5 | ||||
| -rw-r--r-- | tests/helpers.hpp | 4 | ||||
| -rw-r--r-- | tests/test.hpp | 4 | ||||
| -rw-r--r-- | tests/writer_string.hpp | 4 | 
5 files changed, 16 insertions, 6 deletions
diff --git a/tests/allocator.hpp b/tests/allocator.hpp index a2022fe..677fbe4 100644 --- a/tests/allocator.hpp +++ b/tests/allocator.hpp @@ -1,7 +1,10 @@ -#pragma once
 +#ifndef HEADER_TEST_ALLOCATOR_HPP
 +#define HEADER_TEST_ALLOCATOR_HPP
  #include <stddef.h>
  void* memory_allocate(size_t size);
  size_t memory_size(void* ptr);
  void memory_deallocate(void* ptr);
 +
 +#endif
 diff --git a/tests/common.hpp b/tests/common.hpp index 306fb18..b466c09 100644 --- a/tests/common.hpp +++ b/tests/common.hpp @@ -1,3 +1,8 @@ +#ifndef HEADER_TEST_COMMON_HPP
 +#define HEADER_TEST_COMMON_HPP
 +
  #include "test.hpp"
  using namespace pugi;
 +
 +#endif
 diff --git a/tests/helpers.hpp b/tests/helpers.hpp index 6648806..b160a85 100644 --- a/tests/helpers.hpp +++ b/tests/helpers.hpp @@ -1,4 +1,5 @@ -#pragma once
 +#ifndef HEADER_TEST_HELPERS_HPP
 +#define HEADER_TEST_HELPERS_HPP
  #include "common.hpp"
 @@ -93,3 +94,4 @@ template <typename T> static void generic_rel_ops_test(T obj1, T obj2)  	CHECK(!(obj1 >= obj2));
  }
 +#endif
 diff --git a/tests/test.hpp b/tests/test.hpp index 49fd3a1..5559baa 100644 --- a/tests/test.hpp +++ b/tests/test.hpp @@ -1,5 +1,5 @@ -#ifndef HEADER_TEST_HPP
 -#define HEADER_TEST_HPP
 +#ifndef HEADER_TEST_TEST_HPP
 +#define HEADER_TEST_TEST_HPP
  #include "../src/pugixml.hpp"
 diff --git a/tests/writer_string.hpp b/tests/writer_string.hpp index 1004fa0..a862922 100644 --- a/tests/writer_string.hpp +++ b/tests/writer_string.hpp @@ -1,5 +1,5 @@ -#ifndef HEADER_WRITER_STRING_HPP
 -#define HEADER_WRITER_STRING_HPP
 +#ifndef HEADER_TEST_WRITER_STRING_HPP
 +#define HEADER_TEST_WRITER_STRING_HPP
  #include "../src/pugixml.hpp"
  | 
