mirror of
https://github.com/fumiama/base16384.git
synced 2026-06-06 02:30:31 +08:00
add Cosmopolitan
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
# base16384
|
||||
> **Note**: This project used the awesome cross-patfrom binary compiling tool [cosmopolitan](https://github.com/jart/cosmopolitan)
|
||||
|
||||
Encode binary file to printable utf16be, and vise versa.
|
||||
|
||||
# Description 说明
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
// base1432.c
|
||||
// fumiama 20220319
|
||||
#ifndef __cosmopolitan // always le
|
||||
#ifdef __cosmopolitan // always le
|
||||
# define be16toh(x) bswap_16(x)
|
||||
# define be32toh(x) bswap_32(x)
|
||||
# define htobe16(x) bswap_16(x)
|
||||
# define htobe32(x) bswap_32(x)
|
||||
#else
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
Reference in New Issue
Block a user