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
commit2481e6a24fbcf780f29ea9098600271347df57e3 (patch)
tree0dfa0b5a485eed3864c54300de223af5c63b7e9c /binutils/resrc.c
parent03ae5f594ecda3eccaa441dd8454889379980c1d (diff)
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);