mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Fixes for Linux.
This commit is contained in:
parent
3bf779cd21
commit
e4362dad73
3 changed files with 7 additions and 1 deletions
|
@ -87,6 +87,7 @@ cef_static_method_impls! {
|
||||||
browser_host_create(client, false);
|
browser_host_create(client, false);
|
||||||
1i32
|
1i32
|
||||||
}
|
}
|
||||||
|
|
||||||
fn cef_browser_host_create_browser_sync(_window_info: *const cef_window_info_t,
|
fn cef_browser_host_create_browser_sync(_window_info: *const cef_window_info_t,
|
||||||
client: *mut cef_client_t,
|
client: *mut cef_client_t,
|
||||||
_url: *const cef_string_t,
|
_url: *const cef_string_t,
|
||||||
|
|
|
@ -92,6 +92,7 @@ macro_rules! cef_static_method_impls(
|
||||||
)*
|
)*
|
||||||
) => (
|
) => (
|
||||||
$(
|
$(
|
||||||
|
#[no_mangle]
|
||||||
pub extern "C" fn $method_name($($method_arg_name: $method_arg_type),*)
|
pub extern "C" fn $method_name($($method_arg_name: $method_arg_type),*)
|
||||||
-> $method_return_type {
|
-> $method_return_type {
|
||||||
$(
|
$(
|
||||||
|
|
|
@ -2,7 +2,11 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
use libc::{c_uint, c_ushort, c_int, c_double, size_t, c_void};
|
use libc::{c_uint, c_ushort, c_int, c_double, size_t};
|
||||||
|
#[cfg(target_os="linux")]
|
||||||
|
use libc::c_ulong;
|
||||||
|
#[cfg(target_os="macos")]
|
||||||
|
use libc::c_void;
|
||||||
use libc::types::os::arch::c95::wchar_t;
|
use libc::types::os::arch::c95::wchar_t;
|
||||||
|
|
||||||
pub use self::cef_rect as cef_rect_t;
|
pub use self::cef_rect as cef_rect_t;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue