[Vm-dev] VM Maker: FileAttributesPlugin.oscog-eem.61.mcz
commits at source.squeak.org
commits at source.squeak.org
Fri Sep 17 02:32:08 UTC 2021
Eliot Miranda uploaded a new version of FileAttributesPlugin to project VM Maker:
http://source.squeak.org/VMMaker/FileAttributesPlugin.oscog-eem.61.mcz
==================== Summary ====================
Name: FileAttributesPlugin.oscog-eem.61
Author: eem
Time: 16 September 2021, 7:32:06.488584 pm
UUID: bf616f5a-459a-4d9a-b061-d887e3107deb
Ancestors: FileAttributesPlugin.oscog-eem.60
Eliminate a compiler warning.
=============== Diff against FileAttributesPlugin.oscog-eem.60 ===============
Item was changed:
----- Method: FileAttributesPlugin class>>declareCVarsIn: (in category 'translation') -----
declareCVarsIn: cg
self declareC: #('sCLPfn' 'sCOFfn')
as: #'void *'
in: cg.
"Assume the security plugin can be loaded until proven otherwise"
cg var: 'hasSecurityPlugin' declareC: 'int hasSecurityPlugin = 1'.
cg addHeaderFile: '<errno.h>'.
cg addHeaderFile: '<limits.h>'.
cg addHeaderFile: '<sys/types.h>
#if _WIN32 || _WIN64
+ # include <Windows.h>
+ # include <WinBase.h>
- # include <windows.h>
- # include <winbase.h>
# if !!defined(_MSC_VER) /* i.e. cygwin or mingw */
# include <unistd.h>
# include <dirent.h>
# endif
# define FAIL() { return -1; }
# include "sqWin32File.h"
# if !!defined(PATH_MAX) /* work around bug in 64-bit cygwin; sigh :-( */
# define PATH_MAX 4096
# endif
# define HAVE_CHMOD 0
# define HAVE_CHOWN 0
#else
# include <unistd.h>
# include <dirent.h>
# define HAVE_CHMOD 1
# define HAVE_CHOWN 1
#endif'.
cg addHeaderFile: '"faCommon.h"'.
cg addHeaderFile: '<sys/stat.h>
#if !!defined(HAVE_LSTAT) && !!defined(_WIN32) && !!defined(_WIN64)
# define HAVE_LSTAT 1
#endif
/* AKG 2018 - ', self moduleName, '.c translated from class ', self name, ' */'!
More information about the Vm-dev
mailing list