Skip to content

Commit

Permalink
add Cosmopolitan
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Mar 29, 2022
1 parent 41ac8a5 commit 4418c2a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
10 changes: 1 addition & 9 deletions base1432.c
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
// base1432.c
// fumiama 20220319
#ifdef __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
#ifndef __cosmopolitan // always le
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
Expand Down
5 changes: 0 additions & 5 deletions base16384.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
#ifdef __WINNT__
#include <windows.h>
#endif
#else
struct timespec {
unsigned long tv_sec;
unsigned long tv_nsec;
};
#endif
#include "base14.h"

Expand Down

0 comments on commit 4418c2a

Please sign in to comment.