1
0
mirror of https://github.com/fumiama/base16384.git synced 2026-06-20 05:40:24 +08:00

fix(release): adapt to cosmopolitan

This commit is contained in:
源文雨
2024-04-05 17:17:54 +09:00
parent b9e02241bd
commit f3eaa1937a
4 changed files with 17 additions and 8 deletions

View File

@@ -16,15 +16,16 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __cosmopolitan
#include <string.h>
#endif
#include "binary.h"
union remainder {
typedef union {
uint8_t buf[8];
uint64_t val;
};
typedef union remainder remainder;
} remainder;
int base16384_encode_safe(const char* data, int dlen, char* buf) {
int outlen = dlen / 7 * 8;