Skip to content

Commit

Permalink
rXml: use pugixml in header-only mode (#1665)
Browse files Browse the repository at this point in the history
Fixes compilation in VS
  • Loading branch information
danilaml authored and tambry committed Apr 8, 2016
1 parent d846eac commit 6b5ee57
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 0 additions & 4 deletions Utilities/rXml.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#include "stdafx.h"
#include "Utilities/rXml.h"
#pragma warning(push)
#pragma warning(disable : 4996)
#include <pugixml.hpp>
#pragma warning(pop)

rXmlNode::rXmlNode()
{
Expand Down
6 changes: 5 additions & 1 deletion Utilities/rXml.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#pragma once

#include <pugixml.hpp>
#ifndef PUGIXML_HEADER_ONLY
#define PUGIXML_HEADER_ONLY 1
#endif // !PUGIXML_HEADER_ONLY
#include "pugixml.hpp"
#undef PUGIXML_HEADER_ONLY

struct rXmlNode
{
Expand Down
1 change: 0 additions & 1 deletion rpcs3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ endforeach()
file(
GLOB_RECURSE
RPCS3_SRC
"${RPCS3_SRC_DIR}/../3rdparty/pugixml/src/pugixml.cpp"
"${RPCS3_SRC_DIR}/rpcs3.cpp"
"${RPCS3_SRC_DIR}/config.cpp"
"${RPCS3_SRC_DIR}/stb_image.cpp"
Expand Down

0 comments on commit 6b5ee57

Please sign in to comment.