Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Fix alignment of some unions #31

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/xlib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

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

use libc::*;

Expand Down Expand Up @@ -1087,13 +1088,13 @@ pub type XIOErrorHandler = *mut u8;

pub type XConnectionWatchProc = *mut u8;

pub type union_unnamed3 = c_void /* FIXME: union type */;
pub type union_unnamed3 = usize /* FIXME: union type */;

pub type union_unnamed5 = c_void /* FIXME: union type */;
pub type union_unnamed5 = usize /* FIXME: union type */;

pub type union_unnamed2 = c_void /* FIXME: union type */;
pub type union_unnamed2 = usize /* FIXME: union type */;

pub type union_unnamed4 = c_void /* FIXME: union type */;
pub type union_unnamed4 = usize /* FIXME: union type */;

#[repr(C)]
pub struct struct_unnamed1 {
Expand Down