add stpcpy for solaris

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1795 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas committed 1999-07-05 22:47:57 +00:00
1 parent 9859c0d3d4
commit 732e067ae5
2 files changed
+14 -1

No files matched your search

+13
View File
@@ -148,6 +148,19 @@ ultostr (unsigned long val, int base)
return strdup (buf);
}
/********************************************************************\
* stpcpy for those platforms that don't have it.
\********************************************************************/
#ifndef HAVE_STPCPY
char *
stpcpy (char *dest, const char *src)
{
strcpy(dest, src);
return(dest + strlen(src));
}
#endif
/********************************************************************\
* currency & locale related stuff.
* first attempt at internationalization i18n of currency amounts
+1 -1
View File
@@ -36,7 +36,7 @@
/* The debuging macros enable the setting of trace messages */
#include <stdio.h>
#if HAVE_NANA_H
#ifdef HAVE_NANA_H
#include <nana.h>
/* override standard system assert with nana I assertion */