Just fix some warnings for Haiku as well.
One of them was a missing prototype, the other was likely some strangeness in the definition of size_t. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1953 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
93c4832138
commit
235f7d4d1c
@ -1621,7 +1621,7 @@ void Open_window(word width,word height, const char * title)
|
|||||||
Block(Window_pos_X+(Menu_factor_X<<3),Window_pos_Y+(12*Menu_factor_Y),(width-16)*Menu_factor_X,Menu_factor_Y,MC_White);
|
Block(Window_pos_X+(Menu_factor_X<<3),Window_pos_Y+(12*Menu_factor_Y),(width-16)*Menu_factor_X,Menu_factor_Y,MC_White);
|
||||||
|
|
||||||
title_length = strlen(title);
|
title_length = strlen(title);
|
||||||
if (title_length+2 > width/8)
|
if (title_length+2 > (size_t)(width/8))
|
||||||
title_length = width/8-2;
|
title_length = width/8-2;
|
||||||
Print_in_window_limited((width-(title_length<<3))>>1,3,title,title_length,MC_Black,MC_Light);
|
Print_in_window_limited((width-(title_length<<3))>>1,3,title,title_length,MC_Black,MC_Light);
|
||||||
|
|
||||||
|
|||||||
@ -1,8 +1,15 @@
|
|||||||
#include "struct.h"
|
#include "struct.h"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Haiku specific code was moved here, because the API is C++.
|
||||||
|
* It can't be compiled in the usual C files.
|
||||||
|
* So we provide a C wrapper to the functons we need.
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef __HAIKU_H
|
#ifndef __HAIKU_H
|
||||||
#define __HAIKU_H
|
#define __HAIKU_H
|
||||||
|
|
||||||
qword haiku_get_free_space(char* path);
|
qword haiku_get_free_space(char* path);
|
||||||
|
char* haiku_get_clipboard();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -44,6 +44,8 @@
|
|||||||
#ifdef __WIN32__
|
#ifdef __WIN32__
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
#include <SDL_syswm.h>
|
#include <SDL_syswm.h>
|
||||||
|
#elif defined __HAIKU__
|
||||||
|
#include "haiku.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Virtual keyboard is mandatory on these platforms:
|
// Virtual keyboard is mandatory on these platforms:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user