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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user