panel_wrap.h in ncursesw-1.2.4.3 vs panel_wrap.h in ncursesw-1.4.0.0

- old
+ new

@@ -1,8 +1,9 @@ /* * ncurses-ruby is a ruby module for accessing the FSF's ncurses library * (C) 2002 Tobias Peters <t-peters@berlios.de> + * (C) 2011 Tobias Herzke * * This module is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. @@ -15,14 +16,18 @@ * You should have received a copy of the GNU Lesser General Public * License along with this module; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: panel_wrap.h,v 1.5 2004/07/31 08:35:13 t-peters Exp $ */ +/* $Id: panel_wrap.h,v 1.6 2011-05-30 23:05:50 t-peters Exp $ */ -#if !defined(PANEL_HH) && defined(HAVE_PANEL_H) +#if !defined(PANEL_HH) && (defined(HAVE_PANEL_H) || defined(HAVE_NCURSESW_PANEL_H)) #define PANEL_HH +#ifdef HAVE_PANEL_H #include <panel.h> +#else +#include <ncursesw/panel.h> +#endif #include <ruby.h> extern VALUE mPanel; extern VALUE cPANEL;