forked from 0ad/0ad
Fixed compilation errors
This was SVN commit r1731.
This commit is contained in:
parent
2077698156
commit
4b5aff926d
@ -11,7 +11,7 @@
|
||||
#define LOG_CAT_NET "net"
|
||||
|
||||
CNetClient *g_NetClient=NULL;
|
||||
extern int fps;
|
||||
extern "C" int fps;
|
||||
extern CConsole *g_Console;
|
||||
|
||||
enum CClientEvents
|
||||
|
@ -142,7 +142,6 @@ template <> void XMLWriter_File::ElementAttribute<CStr>(const char* name, CStr&
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
// (Simon) Since GCC refuses to pass temporaries through non-const reference,
|
||||
// define this wrapper function to convert [ugly] a const CStr to a non-const
|
||||
template <>
|
||||
@ -150,7 +149,6 @@ inline void XMLWriter_File::ElementAttribute<const CStr>(const char *name, const
|
||||
{
|
||||
ElementAttribute(name, (CStr &)value, newelement);
|
||||
}
|
||||
#endif
|
||||
|
||||
// Attribute/setting value-to-string template specialisations:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user