1 Star 1 Fork 1

Linux OS/busybox

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
makedev.c 863 Bytes
一键复制 编辑 原始数据 按行查看 历史
Denys Vlasenko 提交于 2011-01-25 06:53 +08:00 . nicer looking ifdef in libbb/makedev.c
/*
* Utility routines.
*
* Copyright (C) 2006 Denys Vlasenko
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
/* We do not include libbb.h - #define makedev() is there! */
#include "platform.h"
/* Different Unixes want different headers for makedev */
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) \
|| defined(__APPLE__)
# include <sys/types.h>
#else
# include <features.h>
# include <sys/sysmacros.h>
#endif
#ifdef __GLIBC__
/* At least glibc has horrendously large inline for this, so wrap it. */
/* uclibc people please check - do we need "&& !__UCLIBC__" above? */
/* Suppress gcc "no previous prototype" warning */
unsigned long long FAST_FUNC bb_makedev(unsigned major, unsigned minor);
unsigned long long FAST_FUNC bb_makedev(unsigned major, unsigned minor)
{
return makedev(major, minor);
}
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/linux-os/busybox.git
git@gitee.com:linux-os/busybox.git
linux-os
busybox
busybox
master

搜索帮助