pkgsrc/x11/efltk/patches/patch-src_widgets_Fl__Input_cpp

23 lines
626 B
Text

$NetBSD: patch-src_widgets_Fl__Input_cpp,v 1.2 2011/10/11 00:29:41 dholland Exp $
- fix LP64 build
--- src/widgets/Fl_Input.cpp.orig 2003-06-22 21:36:13.000000000 +0000
+++ src/widgets/Fl_Input.cpp
@@ -40,6 +40,7 @@
// For NLS stuff
#include "../core/fl_internal.h"
+#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
@@ -59,7 +60,7 @@ static Fl_Menu_ *menu_ = &menu;
static void cb_menu(Fl_Widget *w, void *d)
{
if(!menu_widget) return;
- switch((int)d) {
+ switch((int)(intptr_t)d) {
case CUT:
menu_widget->copy(true);
menu_widget->cut();