Discussion:
[Mingw-w64-public] [PATCH] amended function prototype of function 'glob' in glob.h
Jannick
2017-07-03 11:04:29 UTC
Permalink
Attached a tiny patch to glob.h which remedies a function prototype
definition error thrown upon compilation.



On one of cygwin's user lists I was deferred to this one here. I bumped into
that issue when compiling with cygwin's i686-pc-mingw32. I am hoping that
this is the correct list to raise this issue.



Thanks,

J.



---
C:/cygwin32/usr/i686-pc-mingw32/sys-root/mingw/include/nppBackup/glob.h.2017
-06-25_142140.bak Tue Jul 16 00:34:26 2013

+++ C:/cygwin32/usr/i686-pc-mingw32/sys-root/mingw/include/glob.h Sun Jun 25
14:21:40 2017

@@ -142,7 +142,8 @@

#define GLOB_INLINE static __inline__ __attribute__((__always_inline__))

GLOB_INLINE int glob

-( const char *__pattern, int __flags, int (*__errfunc)(), glob_t *__data )

+( const char *__pattern, int __flags, int (*__errfunc) (const char *, int),
glob_t *__data )

{ return __mingw_glob( __pattern, __flags, __errfunc, __data ); }

GLOB_INLINE void globfree( glob_t *__data )
Liu Hao
2017-07-03 11:30:22 UTC
Permalink
Post by Jannick
Attached a tiny patch to glob.h which remedies a function prototype
definition error thrown upon compilation.
On one of cygwin's user lists I was deferred to this one here. I bumped into
that issue when compiling with cygwin's i686-pc-mingw32. I am hoping that
this is the correct list to raise this issue.
This is a wrong list for this patch, as MinGW-w64 does not provide
<glob.h>. Since it is a POSIX function I presume it is provided by
Cygwin. It may also be provided by MinGW (w/o the -w64 suffix). So
please refer the patch to their lists instead.
--
Best regards,
LH_Mouse
Jannick
2017-07-08 08:03:40 UTC
Permalink
Post by Liu Hao
This is a wrong list for this patch, as MinGW-w64 does not provide
<glob.h>.
Post by Liu Hao
Since it is a POSIX function I presume it is provided by Cygwin. It may
also be
Post by Liu Hao
provided by MinGW (w/o the -w64 suffix). So please refer the patch to
their
Post by Liu Hao
lists instead.
Thanks for the clarification.

Best,
J.

Loading...