mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
Fixed compilation errors
This was SVN commit r1731.
This commit is contained in:
parent
2077698156
commit
4b5aff926d
2 changed files with 1 additions and 3 deletions
|
|
@ -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 a new issue