summaryrefslogtreecommitdiff
path: root/binutils/resrc.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-06-22 22:50:22 +0000
committerIan Lance Taylor <ian@airs.com>1999-06-22 22:50:22 +0000
commit093dbc3e96351c886849c4538d5e972f309c96a6 (patch)
tree819c994f60cdf8a19f74bcf47de2522565e4ca97 /binutils/resrc.c
parent5bdbb41e6aa9b26eb8758d70c72163a366801be5 (diff)
downloadbinutils-redhat-093dbc3e96351c886849c4538d5e972f309c96a6.tar.gz
1999-06-23 Mumit Khan <khan@xraylith.wisc.edu>
* configure.in (HAVE_EXECUTABLE_SUFFIX): Define. * dlltool.c (look_for_prog): Use HAVE_EXECUTABLE_SUFFIX. * dllwrap.c (look_for_prog): Likewise. * resrc.c (look_for_default): Likewise. * configure, config.in: Rebuild.
Diffstat (limited to 'binutils/resrc.c')
-rw-r--r--binutils/resrc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/binutils/resrc.c b/binutils/resrc.c
index ed6a36a4f7..c633c2a0b1 100644
--- a/binutils/resrc.c
+++ b/binutils/resrc.c
@@ -146,7 +146,7 @@ look_for_default (cmd, prefix, end_prefix, preprocargs, filename)
if (strchr (cmd, '/'))
{
found = (stat (cmd, &s) == 0
-#ifdef EXECUTABLE_SUFFIX
+#ifdef HAVE_EXECUTABLE_SUFFIX
|| stat (strcat (cmd, EXECUTABLE_SUFFIX), &s) == 0
#endif
);
@@ -207,7 +207,7 @@ read_rc_file (filename, preprocessor, preprocargs, language)
+ strlen (preprocessor)
+ strlen (preprocargs)
+ strlen (filename)
-#ifdef EXECUTABLE_SUFFIX
+#ifdef HAVE_EXECUTABLE_SUFFIX
+ strlen (EXECUTABLE_SUFFIX)
#endif
+ 10);