/[zanavi_public1]/navit/intl/dcigettext.c
ZANavi

Diff of /navit/intl/dcigettext.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 39 Revision 40
165# endif 165# endif
166 166
167 167
168 168
169# ifndef HAVE_STPCPY 169# ifndef HAVE_STPCPY
170static char *stpcpy (char *dest, const char *src); 170char *stpcpy (char *dest, const char *src);
171# endif 171# endif
172# ifndef HAVE_MEMPCPY 172# ifndef HAVE_MEMPCPY
173static void *mempcpy (void *dest, const void *src, size_t n); 173static void *mempcpy (void *dest, const void *src, size_t n);
174# endif 174# endif
175#endif 175#endif
1175/* We don't want libintl.a to depend on any other library. So we 1175/* We don't want libintl.a to depend on any other library. So we
1176 avoid the non-standard function stpcpy. In GNU C Library this 1176 avoid the non-standard function stpcpy. In GNU C Library this
1177 function is available, though. Also allow the symbol HAVE_STPCPY 1177 function is available, though. Also allow the symbol HAVE_STPCPY
1178 to be defined. */ 1178 to be defined. */
1179#if !_LIBC && !HAVE_STPCPY 1179#if !_LIBC && !HAVE_STPCPY
1180static char * 1180char *
1181stpcpy (char *dest, const char *src) 1181stpcpy (char *dest, const char *src)
1182{ 1182{
1183 while ((*dest++ = *src++) != '\0') 1183 while ((*dest++ = *src++) != '\0')
1184 /* Do nothing. */ ; 1184 /* Do nothing. */ ;
1185 return dest - 1; 1185 return dest - 1;

Legend:
Removed from v.39  
changed lines
  Added in v.40

   
Visit the ZANavi Wiki