From ca4866290b2408c39575f4cea40f2bac16183631 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Thu, 20 May 2010 07:32:49 +0000 Subject: tests: Fixed deprecation warnings disabling for GCC 4.0, miscellaneous fixes for MacOS X git-svn-id: http://pugixml.googlecode.com/svn/trunk@433 99668b35-9821-0410-8761-19e4c4f06640 --- tests/test_deprecated.cpp | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'tests/test_deprecated.cpp') diff --git a/tests/test_deprecated.cpp b/tests/test_deprecated.cpp index 4677fdf..4a9d3b4 100644 --- a/tests/test_deprecated.cpp +++ b/tests/test_deprecated.cpp @@ -1,24 +1,27 @@ // This file includes all tests for deprecated functionality; this is going away in the next release! -#include - -#include "common.hpp" - -#include "writer_string.hpp" - -#include -#include - #ifdef _MSC_VER # pragma warning(disable: 4996) #endif #ifdef __GNUC__ -# if __GNUC__ >= 4 +# if __GNUC__ >= 4 && __GNUC_MINOR__ >= 2 # pragma GCC diagnostic ignored "-Wdeprecated-declarations" +# else +# define PUGIXML_DEPRECATED # endif #endif + +#include + +#include "common.hpp" + +#include "writer_string.hpp" + +#include +#include + // format_write_bom_utf8 - it's now format_write_bom! TEST_XML(document_save_bom_utf8, "") { -- cgit v1.2.3