Fix warning and Win32 in general

This commit is contained in:
Nishi 2026-06-25 13:50:40 +09:00
commit 5e3b8b3b12
7 changed files with 27 additions and 12 deletions

View file

@ -364,7 +364,7 @@ static size_t dopr(char* buffer, size_t maxlen, const char* format, va_list args
break;
case 'p':
strvalue = va_arg(args, void*);
fmtint(buffer, &currlen, maxlen, (long)strvalue, 16, min, max, flags);
fmtint(buffer, &currlen, maxlen, (size_t)strvalue, 16, min, max, flags);
break;
case 'n':
if(cflags == DP_C_SHORT) {

View file

@ -233,9 +233,9 @@ opendict(SJ4_CONTEXT char* name, char* passwd) {
u_char* dp;
VFile vf;
#if defined(EMBED) || defined(EMBED_PLUS)
memset(&vf, 0, sizeof(vf));
#if defined(EMBED) || defined(EMBED_PLUS)
if(strcmp(name, "sj4main.dic") == 0) {
extern u_char sj4main_dic[];
extern u_int sj4main_dic_len;

1
lib/sj4ime/ime.c Normal file
View file

@ -0,0 +1 @@
#include <sj_ime.h>