Mercurial > hg > xemacs-beta
comparison src/sysdep.c @ 912:e10cdc51a200
[xemacs-hg @ 2002-07-09 11:58:12 by michaels]
2002-07-08 Mike Sperber <mike@xemacs.org>
* text.h: Only include wchar.h if we have it; define wcslen
prototype if we don't.
* config.h.in: Add stub for HAVE_WCHAR_H.
* sysdep.c (wcslen): Added definition for systems which don't have
it.
author | michaels |
---|---|
date | Tue, 09 Jul 2002 11:58:12 +0000 |
parents | 79c6ff3eef26 |
children | 37bdd24225ef |
comparison
equal
deleted
inserted
replaced
911:428608d46017 | 912:e10cdc51a200 |
---|---|
3325 if (ctime_static) | 3325 if (ctime_static) |
3326 xfree (ctime_static); | 3326 xfree (ctime_static); |
3327 EXTERNAL_TO_C_STRING_MALLOC (str, ctime_static, Qnative); | 3327 EXTERNAL_TO_C_STRING_MALLOC (str, ctime_static, Qnative); |
3328 return ctime_static; | 3328 return ctime_static; |
3329 } | 3329 } |
3330 | |
3331 /************************************************************************/ | |
3332 /* Emulation of missing functions from wchar.h */ | |
3333 /************************************************************************/ | |
3334 | |
3335 #ifndef HAVE_WCHAR_H | |
3336 size_t | |
3337 wcslen(const wchar_t *s) | |
3338 { | |
3339 const wchar_t *p = s; | |
3340 | |
3341 while (*p++) | |
3342 ; | |
3343 | |
3344 return p - s; | |
3345 } | |
3346 #endif | |
3330 | 3347 |
3331 | 3348 |
3332 /************************************************************************/ | 3349 /************************************************************************/ |
3333 /* Emulations of missing system calls */ | 3350 /* Emulations of missing system calls */ |
3334 /************************************************************************/ | 3351 /************************************************************************/ |