endian_machdep.h

来自「基于组件方式开发操作系统的OSKIT源代码」· C头文件 代码 · 共 15 行

H
15
字号
/*	$NetBSD: endian_machdep.h,v 1.1 2000/03/17 00:09:20 mycroft Exp $	*/#define _BYTE_ORDER _LITTLE_ENDIAN#ifdef __GNUC__#include <machine/byte_swap.h>#define	ntohl(x)	((in_addr_t)__byte_swap_long((in_addr_t)(x)))#define	ntohs(x)	((in_port_t)__byte_swap_word((in_port_t)(x)))#define	htonl(x)	((in_addr_t)__byte_swap_long((in_addr_t)(x)))#define	htons(x)	((in_port_t)__byte_swap_word((in_port_t)(x)))#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?