Use g_strerror() instead of strerror().
Remove build system checks for strerror(). git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3047 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
e13eb4148b
commit
bed14c6353
@ -16,6 +16,9 @@
|
||||
* wscript, waf:
|
||||
Update waf to its latest SVN version (nearly 1.5.0).
|
||||
Adjust wscript to latest Waf API changes.
|
||||
* configure.in, wscript, tagmanager/ctags.c, src/tools.c:
|
||||
Use g_strerror() instead of strerror().
|
||||
Remove build system checks for strerror().
|
||||
|
||||
|
||||
2008-10-03 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
|
||||
|
@ -275,7 +275,7 @@ void tools_execute_custom_command(GeanyDocument *doc, const gchar *command)
|
||||
if (wrote < 0)
|
||||
{
|
||||
g_warning("%s: %s: %s\n", __func__, "Failed sending data to command",
|
||||
strerror(errno));
|
||||
g_strerror(errno));
|
||||
break;
|
||||
}
|
||||
remaining -= wrote;
|
||||
|
@ -285,11 +285,7 @@ extern void error (const errorSelection selection,
|
||||
selected (selection, WARNING) ? "Warning: " : "");
|
||||
vfprintf (errout, format, ap);
|
||||
if (selected (selection, PERROR))
|
||||
#ifdef HAVE_STRERROR
|
||||
fprintf (errout, " : %s", strerror (errno));
|
||||
#else
|
||||
perror (" ");
|
||||
#endif
|
||||
fprintf (errout, " : %s", g_strerror (errno));
|
||||
fputs ("\n", errout);
|
||||
va_end (ap);
|
||||
if (selected (selection, FATAL))
|
||||
|
1
wscript
1
wscript
@ -161,7 +161,6 @@ def configure(conf):
|
||||
conf.check(function_name='ftruncate', header_name='unistd.h')
|
||||
conf.check(function_name='gethostname', header_name='unistd.h')
|
||||
conf.check(function_name='mkstemp', header_name='stdlib.h')
|
||||
conf.check(function_name='strerror', header_name='string.h')
|
||||
conf.check(function_name='strstr', header_name='string.h', mandatory=True)
|
||||
|
||||
# check for cxx after the header and function checks have been done to ensure they are
|
||||
|
Loading…
x
Reference in New Issue
Block a user