1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*!
# Unsafe fluidlite bindings

This crate provides generated unsafe Rust bindings to [fluidlite](https://github.com/katyo/fluidlite) C library.

Probably this isn't that you really need. See [safe bindings](https://crates.io/crate/fluidlite).
 */

#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]

pub const FLUID_OK: std::os::raw::c_int = 0;
pub const FLUID_FAILED: std::os::raw::c_int = -1;

#[cfg(feature = "generate-bindings")]
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));

#[cfg(all(not(feature = "generate-bindings"), target_arch = "arm"))]
include!("bindings_arm.rs");

#[cfg(all(not(feature = "generate-bindings"), target_arch = "aarch64"))]
include!("bindings_aarch64.rs");

#[cfg(all(not(feature = "generate-bindings"), target_arch = "mips"))]
include!("bindings_mips.rs");

#[cfg(all(not(feature = "generate-bindings"), target_arch = "mips64"))]
include!("bindings_mips64.rs");

#[cfg(all(not(feature = "generate-bindings"), target_arch = "powerpc"))]
include!("bindings_powerpc.rs");

#[cfg(all(not(feature = "generate-bindings"), target_arch = "powerpc64"))]
include!("bindings_powerpc64.rs");

//#[cfg(all(not(feature = "generate-bindings"), target_arch = "sparc"))]
//include!("bindings_sparc.rs");

#[cfg(all(not(feature = "generate-bindings"), target_arch = "sparc64"))]
include!("bindings_sparc64.rs");

#[cfg(all(not(feature = "generate-bindings"), target_arch = "x86"))]
include!("bindings_x86.rs");

#[cfg(all(not(feature = "generate-bindings"), any(target_arch = "x86_64", feature = "rustdoc")))]
include!("bindings_x86_64.rs");

#[cfg(all(
    not(feature = "generate-bindings"),
    not(target_arch = "x86"),
    not(target_arch = "x86_64"),
    not(target_arch = "arm"),
    not(target_arch = "aarch64"),
    not(target_arch = "mips"),
    not(target_arch = "mips64"),
    not(target_arch = "powerpc"),
    not(target_arch = "powerpc64"),
    //not(target_arch = "sparc"),
    not(target_arch = "sparc64"),
))]
compile_error!("Missing pre-generated bindings for target arch. Try enable 'generate-bindings' feature.");