mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 12:12:35 +03:00
fixup missing includes from schedule changes
This commit is contained in:
parent
87f6314dab
commit
5c6a0eda3b
@ -484,7 +484,7 @@ struct NewMenu *ami_create_menu(struct gui_window_2 *gwin)
|
||||
if(nsoption_int(menu_refresh) > 0)
|
||||
{
|
||||
ami_schedule(nsoption_int(menu_refresh) * 10,
|
||||
ami_menu_refresh,
|
||||
(void *)ami_menu_refresh,
|
||||
gwin);
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,6 @@
|
||||
*/
|
||||
|
||||
#include "amiga/os3support.h"
|
||||
#include "amiga/schedule.h"
|
||||
|
||||
#include <proto/exec.h>
|
||||
#include <proto/timer.h>
|
||||
@ -26,6 +25,10 @@
|
||||
#include <stdbool.h>
|
||||
#include <pbl.h>
|
||||
|
||||
#include "utils/errors.h"
|
||||
|
||||
#include "amiga/schedule.h"
|
||||
|
||||
struct nscallback
|
||||
{
|
||||
struct TimeVal tv;
|
||||
|
@ -1396,5 +1396,5 @@ void ami_tree_redraw_request(int x, int y, int width, int height, void *data)
|
||||
if(nsoption_bool(direct_render) == false)
|
||||
ami_schedule(0, ami_tree_redraw_req, atrr_data);
|
||||
else
|
||||
am_schedule(0, ami_tree_redraw_req_dr, atrr_data);
|
||||
ami_schedule(0, ami_tree_redraw_req_dr, atrr_data);
|
||||
}
|
||||
|
@ -22,6 +22,8 @@
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "utils/errors.h"
|
||||
|
||||
#include "atari/schedule.h"
|
||||
|
||||
#ifdef DEBUG_SCHEDULER
|
||||
|
@ -18,6 +18,8 @@
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
#import "utils/errors.h"
|
||||
|
||||
#import "cocoa/schedule.h"
|
||||
|
||||
@interface ScheduledCallback : NSObject {
|
||||
|
@ -19,10 +19,11 @@
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "windows/schedule.h"
|
||||
|
||||
#include "utils/log.h"
|
||||
#include "utils/utils.h"
|
||||
#include "utils/errors.h"
|
||||
|
||||
#include "windows/schedule.h"
|
||||
|
||||
#ifdef DEBUG_SCHEDULER
|
||||
#define SRLOG(x) LOG(x)
|
||||
@ -110,7 +111,7 @@ nserror win32_schedule(int ival, void (*callback)(void *p), void *p)
|
||||
}
|
||||
|
||||
tv.tv_sec = ival / 1000; /* miliseconds to seconds */
|
||||
tv.tv_usec = (cs_ival % 1000) * 1000; /* remainder to microseconds */
|
||||
tv.tv_usec = (ival % 1000) * 1000; /* remainder to microseconds */
|
||||
|
||||
nscb = calloc(1, sizeof(struct nscallback));
|
||||
if (nscb == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user