0
0
mirror of https://github.com/zeux/pugixml.git synced 2024-12-27 13:33:17 +08:00

tests: Replaced #pragma once with header guards

git-svn-id: http://pugixml.googlecode.com/svn/trunk@450 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
arseny.kapoulkine 2010-05-25 21:40:11 +00:00
parent 75a0d2379a
commit 0e1b238fae
5 changed files with 16 additions and 6 deletions

View File

@ -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

View File

@ -1,3 +1,8 @@
#ifndef HEADER_TEST_COMMON_HPP
#define HEADER_TEST_COMMON_HPP
#include "test.hpp"
using namespace pugi;
#endif

View File

@ -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

View File

@ -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"

View File

@ -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"