Kaydet (Commit) bed14c63 authored tarafından Enrico Tröger's avatar Enrico Tröger

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
üst e13eb414
...@@ -16,6 +16,9 @@ ...@@ -16,6 +16,9 @@
* wscript, waf: * wscript, waf:
Update waf to its latest SVN version (nearly 1.5.0). Update waf to its latest SVN version (nearly 1.5.0).
Adjust wscript to latest Waf API changes. 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> 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) ...@@ -275,7 +275,7 @@ void tools_execute_custom_command(GeanyDocument *doc, const gchar *command)
if (wrote < 0) if (wrote < 0)
{ {
g_warning("%s: %s: %s\n", __func__, "Failed sending data to command", g_warning("%s: %s: %s\n", __func__, "Failed sending data to command",
strerror(errno)); g_strerror(errno));
break; break;
} }
remaining -= wrote; remaining -= wrote;
......
...@@ -285,11 +285,7 @@ extern void error (const errorSelection selection, ...@@ -285,11 +285,7 @@ extern void error (const errorSelection selection,
selected (selection, WARNING) ? "Warning: " : ""); selected (selection, WARNING) ? "Warning: " : "");
vfprintf (errout, format, ap); vfprintf (errout, format, ap);
if (selected (selection, PERROR)) if (selected (selection, PERROR))
#ifdef HAVE_STRERROR fprintf (errout, " : %s", g_strerror (errno));
fprintf (errout, " : %s", strerror (errno));
#else
perror (" ");
#endif
fputs ("\n", errout); fputs ("\n", errout);
va_end (ap); va_end (ap);
if (selected (selection, FATAL)) if (selected (selection, FATAL))
......
...@@ -161,7 +161,6 @@ def configure(conf): ...@@ -161,7 +161,6 @@ def configure(conf):
conf.check(function_name='ftruncate', header_name='unistd.h') conf.check(function_name='ftruncate', header_name='unistd.h')
conf.check(function_name='gethostname', 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='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) 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 # check for cxx after the header and function checks have been done to ensure they are
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment