Skip to content

Commit

Permalink
Fixes compilation with CLang 3.2 and libc++.
Browse files Browse the repository at this point in the history
This libc++ is the standard c++ library of the LLVM project.
Backport of 16b4210.
Fixes bug #21303.
  • Loading branch information
Ja-MiT committed Feb 23, 2014
1 parent 539de53 commit adf0869
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog
Expand Up @@ -24,6 +24,7 @@ Version 1.10.7+dev:
persisting and escaping the sound source management code (bug #21426).
* Fixed wmlindent and wmltools.py to not interpret Pango hexadecimal
color codes as the start of a comment.
* Fixed: Compilation with CLang 3.2 and libc++.

Version 1.10.7:
* Add-ons server:
Expand Down
4 changes: 2 additions & 2 deletions src/construct_dialog.hpp
Expand Up @@ -190,11 +190,11 @@ class dialog {
int x, y;
SDL_Rect interior, message, textbox;
unsigned int menu_width;
std::map<preview_pane *const, SDL_Rect > panes;
std::map<preview_pane *, SDL_Rect > panes;
int label_x, label_y;
int menu_x, menu_y, menu_height;
int image_x, image_y, caption_x, caption_y;
std::map<dialog_button *const, std::pair<int,int> > buttons;
std::map<dialog_button *, std::pair<int,int> > buttons;
//use get_frame().get_layout() to check frame dimensions
};
typedef dialog_frame::style style;
Expand Down
2 changes: 1 addition & 1 deletion src/filechooser.cpp
Expand Up @@ -96,7 +96,7 @@ gui::dialog::dimension_measurements file_dialog::layout(int xloc, int yloc)
//shift the extra buttons up
if (show_directory_buttons_)
{
std::map<gui::dialog_button *const, std::pair<int,int> >::iterator i;
std::map<gui::dialog_button *, std::pair<int,int> >::iterator i;
for(i = dim.buttons.begin(); i != dim.buttons.end(); ++i)
{
const int btn_h = i->first->height();
Expand Down

0 comments on commit adf0869

Please sign in to comment.