Ticket #2041: ugly_patch_to_compile_ruby.diff
File ugly_patch_to_compile_ruby.diff, 666 bytes (added by , 16 years ago) |
---|
-
mbrtowc.c
35 35 size_t 36 36 __mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps) 37 37 { 38 // ToDo: this is a dummy implementation to get it going 39 if (s == NULL) 40 n = 1, s = ""; 41 42 if (n == 0) 43 return 0; 44 45 if (pwc == NULL) 46 return strlen(s); 47 48 if (ps == NULL) 49 ps = &state; 50 51 pwc[0] = s[0]; 52 return s[0] == 0 ? 0 : 1; 53 #if 0 38 54 wchar_t buf[1]; 39 55 struct __gconv_step_data data; 40 56 int status; … … 103 119 } 104 120 105 121 return result; 122 #endif 106 123 } 107 124 weak_alias (__mbrtowc, mbrtowc)