openbsd-ports/games/wesnoth/patches/patch-src_widgets_menu_hpp
jasper a2735c2a72 - long overdue update of wesnoth to 1.6.5
joint work with tom murphy
thanks to sthen@ for torturing his armish for countless hours.

ok sthen@
2009-11-11 16:01:33 +00:00

14 lines
449 B
Plaintext

$OpenBSD: patch-src_widgets_menu_hpp,v 1.1 2009/11/11 16:01:34 jasper Exp $
--- src/widgets/menu.hpp.orig Sun Jul 5 13:04:03 2009
+++ src/widgets/menu.hpp Sun Jul 5 13:04:28 2009
@@ -183,6 +183,9 @@ class menu : public scrollarea (public)
void set_max_height(const int new_max_height);
void set_max_width(const int new_max_width);
+ #ifdef nitems
+ #undef nitems
+ #endif
size_t nitems() const { return items_.size(); }
int process();