Fix compiler warning on Windows 64-bit (STR #2813).
Thanks to Csaba for finding this and providing a patch. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10664 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
3bbfe90dd2
commit
e11571a373
@ -233,11 +233,7 @@ FL_EXPORT void glutIdleFunc(void (*f)());
|
||||
|
||||
// Warning: this cast may not work on all machines:
|
||||
inline void glutTimerFunc(unsigned int msec, void (*f)(int), int value) {
|
||||
#if defined(__LP64__)
|
||||
Fl::add_timeout(msec*.001, (void (*)(void *))f, (void *) (long long) value);
|
||||
#else
|
||||
Fl::add_timeout(msec*.001, (void (*)(void *))f, (void *)value);
|
||||
#endif
|
||||
Fl::add_timeout(msec*.001, (void (*)(void *))f, (void *)(fl_intptr_t)value);
|
||||
}
|
||||
|
||||
inline void glutMenuStateFunc(void (*f)(int state)) {
|
||||
|
Loading…
Reference in New Issue
Block a user