diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-06-22 22:50:22 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-06-22 22:50:22 +0000 |
commit | 2481e6a24fbcf780f29ea9098600271347df57e3 (patch) | |
tree | 0dfa0b5a485eed3864c54300de223af5c63b7e9c /binutils/resrc.c | |
parent | 03ae5f594ecda3eccaa441dd8454889379980c1d (diff) | |
download | gdb-2481e6a24fbcf780f29ea9098600271347df57e3.zip gdb-2481e6a24fbcf780f29ea9098600271347df57e3.tar.gz gdb-2481e6a24fbcf780f29ea9098600271347df57e3.tar.bz2 |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/binutils/resrc.c b/binutils/resrc.c index ed6a36a..c633c2a 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); |