mirror of
https://github.com/fumiama/base16384.git
synced 2026-06-26 02:50:24 +08:00
add Cosmopolitan
This commit is contained in:
10
base1432.c
10
base1432.c
@@ -1,14 +1,6 @@
|
|||||||
// base1432.c
|
// base1432.c
|
||||||
// fumiama 20220319
|
// fumiama 20220319
|
||||||
#ifdef __cosmopolitan // always le
|
#ifndef __cosmopolitan // always le
|
||||||
# define be16toh(x) __builtin_bswap16(x)
|
|
||||||
# define be32toh(x) __builtin_bswap32(x)
|
|
||||||
# define htobe16(x) __builtin_bswap16(x)
|
|
||||||
# define htobe32(x) __builtin_bswap32(x)
|
|
||||||
typedef unsigned int uint32_t;
|
|
||||||
typedef int int32_t;
|
|
||||||
typedef unsigned char uint8_t;
|
|
||||||
#else
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|||||||
@@ -6,11 +6,6 @@
|
|||||||
#ifdef __WINNT__
|
#ifdef __WINNT__
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
#else
|
|
||||||
struct timespec {
|
|
||||||
unsigned long tv_sec;
|
|
||||||
unsigned long tv_nsec;
|
|
||||||
};
|
|
||||||
#endif
|
#endif
|
||||||
#include "base14.h"
|
#include "base14.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user