31 lines
1.1 KiB
Text
31 lines
1.1 KiB
Text
$NetBSD: patch-src_widgets_Fl__Calendar_cpp,v 1.2 2011/10/11 00:29:41 dholland Exp $
|
|
|
|
- fix LP64 build
|
|
|
|
--- src/widgets/Fl_Calendar.cpp.orig 2003-05-30 08:46:58.000000000 +0000
|
|
+++ src/widgets/Fl_Calendar.cpp
|
|
@@ -15,6 +15,8 @@
|
|
* *
|
|
***************************************************************************/
|
|
|
|
+#include <stdint.h>
|
|
+
|
|
#include <efltk/Fl_Calendar.h>
|
|
#include <efltk/Fl.h>
|
|
|
|
@@ -43,13 +45,13 @@ static const int monthChanges[4] = {
|
|
// Callback function for day buttons
|
|
void Fl_Calendar::cbDayButtonClicked(Fl_Widget *button, void *param) {
|
|
Fl_Calendar *c = (Fl_Calendar *)button->parent()->parent();
|
|
- c->dayButtonClicked((unsigned)param);
|
|
+ c->dayButtonClicked((unsigned)(uintptr_t)param);
|
|
}
|
|
|
|
// Callback function for switch buttons
|
|
void Fl_Calendar::cbSwitchButtonClicked(Fl_Widget *button, void *param) {
|
|
Fl_Calendar *c = (Fl_Calendar *)button->parent();
|
|
- c->switchButtonClicked((int)param);
|
|
+ c->switchButtonClicked((int)(intptr_t)param);
|
|
}
|
|
|
|
void Fl_Calendar::dayButtonClicked(unsigned day) {
|