blob: 540286977ef2d9c0829d991fdaac9e26cc6ecb07 (
plain)
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
|
#ifndef _WS_CEPH_TYPES_H
#define _WS_CEPH_TYPES_H
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <glib.h>
// this is needed for ceph_fs to compile in userland
#ifdef _MSC_VER
typedef char __s8;
typedef short __s16;
typedef int __s32;
typedef __int64 __s64;
typedef unsigned char __u8;
typedef unsigned short __u16;
typedef unsigned int __u32;
typedef unsigned __int64 __u64;
typedef __u16 __le16;
typedef __u32 __le32;
typedef __u64 __le64;
#define __attribute__(x)
#define O_ACCMODE (O_RDONLY | O_RDWR | O_WRONLY)
#include <winsock.h>
#else
#include <netinet/in.h>
#include <linux/types.h>
#endif
typedef int bool;
#define le16_to_cpu(x) (x)
#define le32_to_cpu(x) (x)
#define le64_to_cpu(x) (x)
typedef guint32 uint32_t;
#include <fcntl.h>
#include <string.h>
#ifdef _MSC_VER
#pragma pack(1)
#endif
#include "ceph_fs.h"
#ifdef _MSC_VER
#pragma pack()
#endif
#endif
|