menu_wrap.h in ncursesw-1.2.4.3 vs menu_wrap.h in ncursesw-1.4.0.0
- old
+ new
@@ -17,15 +17,21 @@
*
* 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
*
+ * Changes
+ * (C) 2011 Tobias Herzke
*/
-#if !defined(MENU_HH) && defined(HAVE_MENU_H)
+#if !defined(MENU_HH) && (defined(HAVE_MENU_H) || defined(HAVE_NCURSESW_MENU_H))
#define MENU_HH
+#ifdef HAVE_MENU_H
#include <menu.h>
+#else
+#include <ncursesw/menu.h>
+#endif
#include <ruby.h>
extern VALUE mMenu;
extern VALUE cITEM;
extern VALUE cMENU;