mirror of https://github.com/pybricks/ldraw.git
mklist: Fix compile errors.
Make sure that it compiles with today's GCC.
This commit is contained in:
parent
6d266bb980
commit
428db3f37a
|
@ -44,6 +44,7 @@
|
||||||
#include "alloc.h"
|
#include "alloc.h"
|
||||||
#include "dir.h"
|
#include "dir.h"
|
||||||
#include "conio.h"
|
#include "conio.h"
|
||||||
|
#include "libgen.h"
|
||||||
|
|
||||||
char *ProgVer = "mklist v1.6 20100706 (C) 1999-2010 Lars C. Hassing lch@ccieurope.com";
|
char *ProgVer = "mklist v1.6 20100706 (C) 1999-2010 Lars C. Hassing lch@ccieurope.com";
|
||||||
|
|
||||||
|
@ -53,8 +54,8 @@ int quiet = 0;
|
||||||
/*****************************************************************/
|
/*****************************************************************/
|
||||||
/* Filename length compatibility stuff */
|
/* Filename length compatibility stuff */
|
||||||
/*****************************************************************/
|
/*****************************************************************/
|
||||||
#ifndef _MAX_PATH
|
#ifndef MAX_PATH
|
||||||
#define _MAX_PATH 256
|
#define MAX_PATH 256
|
||||||
#endif
|
#endif
|
||||||
char shortfilepath[MAX_PATH];
|
char shortfilepath[MAX_PATH];
|
||||||
char shortfilename[MAX_PATH];
|
char shortfilename[MAX_PATH];
|
||||||
|
@ -84,7 +85,7 @@ int namelen = 25; /* LSC specs allow 25 chars in filename. */
|
||||||
int GetShortPathName(char *longpath, char * shortpath, int psize)
|
int GetShortPathName(char *longpath, char * shortpath, int psize)
|
||||||
{
|
{
|
||||||
strncpy(shortpath, longpath, psize);
|
strncpy(shortpath, longpath, psize);
|
||||||
return(strlen(shortpath);
|
return strlen(shortpath);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue