Fix a MSVC compiler error.

The problem was reported and the patch tested by YogiHH. I didn't
check whether the scoped_recource really needs a complete type, just
changed it for MSVC.
This commit is contained in:
Mark de Wever 2010-04-30 15:32:12 +00:00
parent 673dfbd8d0
commit d3f65176ed
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,6 @@
#include "game_display.hpp"
#include "game_preferences.hpp"
#include "log.hpp"
#include "widgets/textbox.hpp"
#include <ctime>

View file

@ -18,6 +18,8 @@
#include "global.hpp"
// Scoped_resource can't use a pointer to an incomplete pointer with MSVC.
#include "widgets/textbox.hpp"
#include "scoped_resource.hpp"
#include <string>
@ -29,7 +31,6 @@ class unit_map;
namespace gui{
class textbox;
class button;
enum TEXTBOX_MODE { TEXTBOX_NONE, TEXTBOX_SEARCH, TEXTBOX_MESSAGE,