mirror of
https://github.com/sheumann/dmake.git
synced 2025-04-07 01:38:03 +00:00
Remove GNO-specific hack for defining a buffer size.
I’m not sure why this was needed originally, but at any rate it doesn't seem to be necessary with current GNO and ORCA/C versions.
This commit is contained in:
parent
6e5dafe039
commit
f6ce72346a
@ -394,16 +394,8 @@ Epilog(int ret_code)
|
||||
PUBLIC char *
|
||||
Get_current_dir(void)
|
||||
{
|
||||
#if defined (GNO)
|
||||
#define PATH_MAX2 66
|
||||
#if ((PATH_MAX + 2) != PATH_MAX2 )
|
||||
#error "sysintf.c: ensure PATH_MAX2 is same as PATH_MAX + 2"
|
||||
#endif
|
||||
|
||||
static char buf[PATH_MAX2]; /* must be identical to PATH_MAX + 2 */
|
||||
#else
|
||||
static char buf[PATH_MAX+2];
|
||||
#endif
|
||||
|
||||
return(getcwd(buf, sizeof(buf)));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user