From d5a1f8370146ca8d295f3e544ef834faa8fee576 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Fri, 19 Jan 2007 01:00:06 +0000 Subject: [PATCH] fix some warnings (gcc 4.2 on Linux x64) svn path=/trunk/; revision=25524 --- reactos/base/shell/explorer/utility/xmlstorage.h | 6 +++--- reactos/tools/pefixup.c | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/reactos/base/shell/explorer/utility/xmlstorage.h b/reactos/base/shell/explorer/utility/xmlstorage.h index 0d224c9e3aa..97516d88323 100644 --- a/reactos/base/shell/explorer/utility/xmlstorage.h +++ b/reactos/base/shell/explorer/utility/xmlstorage.h @@ -714,7 +714,7 @@ struct XMLNode : public XS_String return super::find(x); } - XS_String get(const char* x, LPXSSTR def=XS_EMPTY_STR) const + XS_String get(const char* x, LPCXSSTR def=XS_EMPTY_STR) const { const_iterator found = find(x); @@ -728,7 +728,7 @@ struct XMLNode : public XS_String /// map of XML node attributes struct AttributeMap : public std::map { - XS_String get(const char* x, LPXSSTR def=XS_EMPTY_STR) const + XS_String get(const char* x, LPCXSSTR def=XS_EMPTY_STR) const { const_iterator found = find(x); @@ -848,7 +848,7 @@ struct XMLNode : public XS_String } /// read only access to an attribute - template XS_String get(const T& attr_name, LPXSSTR def=XS_EMPTY_STR) const + template XS_String get(const T& attr_name, LPCXSSTR def=XS_EMPTY_STR) const { AttributeMap::const_iterator found = _attributes.find(attr_name); diff --git a/reactos/tools/pefixup.c b/reactos/tools/pefixup.c index 9e0c125156a..e46b422803d 100644 --- a/reactos/tools/pefixup.c +++ b/reactos/tools/pefixup.c @@ -24,6 +24,9 @@ #include #include #include +#ifndef _WIN32 +#include +#endif #ifndef O_BINARY #define O_BINARY 0