// Purpose: XML resources
// Author: Vaclav Slavik
// Created: 2000/03/05
-// RCS-ID: $Id$
// Copyright: (c) 2000 Vaclav Slavik
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/icon.h"
#include "wx/artprov.h"
#include "wx/colour.h"
-#include "wx/animate.h"
#include "wx/vector.h"
#include "wx/xrc/xmlreshandler.h"
// Compares resources version to argument. Returns -1 if resources version
// is less than the argument, +1 if greater and 0 if they equal.
int CompareVersion(int major, int minor, int release, int revision) const
- { return GetVersion() -
- (major*256*256*256 + minor*256*256 + release*256 + revision); }
+ {
+ long diff = GetVersion() -
+ (major*256*256*256 + minor*256*256 + release*256 + revision);
+ if ( diff < 0 )
+ return -1;
+ else if ( diff > 0 )
+ return +1;
+ else
+ return 0;
+ }
//// Singleton accessors.
#if wxUSE_ANIMATIONCTRL
// Gets an animation.
- wxAnimation GetAnimation(const wxString& param = wxT("animation"));
+ wxAnimation* GetAnimation(const wxString& param = wxT("animation"));
#endif
// Gets a font.