mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-30 10:33:27 +00:00
在内核代码中加入自定义的stdint.h文件 (#109)
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include <DragonOS/stdint.h>
|
||||
#include <common/glib.h>
|
||||
#include "stdint.h"
|
||||
#include <common/semaphore.h>
|
||||
#include <common/mutex.h>
|
||||
#include <common/semaphore.h>
|
||||
|
||||
#define BLK_TYPE_AHCI 0
|
||||
|
||||
@ -16,7 +16,7 @@ struct block_device_operation
|
||||
long (*open)();
|
||||
long (*close)();
|
||||
long (*ioctl)(long cmd, long arg);
|
||||
|
||||
|
||||
/**
|
||||
* @brief 块设备驱动程序的传输函数
|
||||
*
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
#include <common/compiler.h>
|
||||
#include <stdint.h>
|
||||
#include <DragonOS/stdint.h>
|
||||
#define MAX_ERRNO 4095
|
||||
|
||||
#define IS_ERR_VALUE(x) unlikely((x) >= (uint64_t)-MAX_ERRNO)
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
//引入对bool类型的支持
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <DragonOS/stdint.h>
|
||||
#include <common/stddef.h>
|
||||
#include <arch/arch.h>
|
||||
#include <common/compiler.h>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <DragonOS/stdint.h>
|
||||
#include <common/spinlock.h>
|
||||
|
||||
struct kfifo_t
|
||||
|
@ -566,7 +566,7 @@ extern "C"
|
||||
#define LZ4_HASH_SIZE_U32 (1 << LZ4_HASHLOG) /* required as macro for static allocation */
|
||||
|
||||
#if defined(__cplusplus) || (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */)
|
||||
#include <stdint.h>
|
||||
#include <DragonOS/stdint.h>
|
||||
typedef int8_t LZ4_i8;
|
||||
typedef uint8_t LZ4_byte;
|
||||
typedef uint16_t LZ4_u16;
|
||||
|
@ -5,3 +5,7 @@
|
||||
#define NULL 0
|
||||
|
||||
typedef __PTRDIFF_TYPE__ ptrdiff_t; // Signed integer type of the result of subtracting two pointers.
|
||||
|
||||
#ifndef __always_inline
|
||||
#define __always_inline __inline__
|
||||
#endif
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <DragonOS/stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef unsigned char u_char;
|
||||
|
Reference in New Issue
Block a user