Closed dieymir closed 6 years ago
When you attemp to compile the source disabling LFN support in CONFIG.H, compilation fails with several errors. Some constants/structs were undefined. This quick fix solved the problem and I was able to successfuly compile FreeCOM:
--- lfnfuncs.org 2018-08-26 12:49:35.317554669 +0200 +++ lfnfuncs.h 2018-08-26 12:49:35.317554669 +0200 @@ -108,5 +108,24 @@
+ +#ifndef FEATURE_LONG_FILENAMES + +#define dos_ffblk ffblk + +#undef MAXFILE +#undef MAXDIR +#undef MAXPATH +#undef MAXEXT + +#define MAXDRIVE 3 +#define MAXFILE 9 +#define MAXDIR 130 +#define MAXNAME 13 +#define MAXEXT 5 +#define MAXPATH 144 + +#endif / FEATURE_LONG_FILENAMES / + /#endif/ / TURBOC /
When you attemp to compile the source disabling LFN support in CONFIG.H, compilation fails with several errors. Some constants/structs were undefined. This quick fix solved the problem and I was able to successfuly compile FreeCOM:
--- lfnfuncs.org 2018-08-26 12:49:35.317554669 +0200 +++ lfnfuncs.h 2018-08-26 12:49:35.317554669 +0200 @@ -108,5 +108,24 @@
endif / __LFNFUNCS_C /
endif / FEATURE_LONG_FILENAMES /
+ +#ifndef FEATURE_LONG_FILENAMES + +#define dos_ffblk ffblk + +#undef MAXFILE +#undef MAXDIR +#undef MAXPATH +#undef MAXEXT + +#define MAXDRIVE 3 +#define MAXFILE 9 +#define MAXDIR 130 +#define MAXNAME 13 +#define MAXEXT 5 +#define MAXPATH 144 + +#endif / FEATURE_LONG_FILENAMES / + /#endif/ / TURBOC /
endif / H_LFNFUNCS /