Author: cwittich
Date: Fri Jan 19 04:00:06 2007
New Revision: 25524
URL:
http://svn.reactos.org/svn/reactos?rev=25524&view=rev
Log:
fix some warnings (gcc 4.2 on Linux x64)
Modified:
trunk/reactos/base/shell/explorer/utility/xmlstorage.h
trunk/reactos/tools/pefixup.c
Modified: trunk/reactos/base/shell/explorer/utility/xmlstorage.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/utilit…
==============================================================================
--- trunk/reactos/base/shell/explorer/utility/xmlstorage.h (original)
+++ trunk/reactos/base/shell/explorer/utility/xmlstorage.h Fri Jan 19 04:00:06 2007
@@ -714,7 +714,7 @@
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 @@
/// map of XML node attributes
struct AttributeMap : public std::map<XS_String, XS_String>
{
- 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 @@
}
/// read only access to an attribute
- template<typename T> XS_String get(const T& attr_name, LPXSSTR
def=XS_EMPTY_STR) const
+ template<typename T> XS_String get(const T& attr_name, LPCXSSTR
def=XS_EMPTY_STR) const
{
AttributeMap::const_iterator found = _attributes.find(attr_name);
Modified: trunk/reactos/tools/pefixup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/pefixup.c?rev=25524&…
==============================================================================
--- trunk/reactos/tools/pefixup.c (original)
+++ trunk/reactos/tools/pefixup.c Fri Jan 19 04:00:06 2007
@@ -24,6 +24,9 @@
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
+#ifndef _WIN32
+#include <unistd.h>
+#endif
#ifndef O_BINARY
#define O_BINARY 0