I do the following change.

#if defined(_WINDOWS)
    if (!strcmp(path, TOUCH_PATH)) {
#if defined(__BORLANDC__) || defined(__MINGW32__)
 int fd = _creat(argv[1], S_IREAD | S_IWRITE);
#else
 int fd = _creat(argv[1], _S_IREAD | _S_IWRITE);
#endif
#endif


Victor Schneider wrote:
>Inside LyLocal.c, yet another local issue:
>
>#if defined(_WINDOWS)
>    if (!strcmp(path, TOUCH_PATH)) {
>#if defined(__BORLANDC__)
> int fd = creat(argv[1], 'rw');
>#else /* Visual C++ or MingW32 */
>#ifdef __MINGW32__
> int fd = _creat(argv[1], S_IREAD | S_IWRITE);
>#else
> int fd = _creat(argv[1], _S_IREAD | _S_IWRITE);
>#endif
>#endif
>
>

--
Shonai College of Industry and Technology.
Electronics and Computer Information Course.
E-mail: [EMAIL PROTECTED]

Reply via email to