Skip to content

Commit 0e33c28

Browse files
committed
Declare function proto in header
1 parent c621182 commit 0e33c28

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ext/fileinfo/libmagic/file.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,9 @@ protected int file_os2_apptype(struct magic_set *, const char *, const void *,
488488
size_t);
489489
#endif /* __EMX__ */
490490

491+
public void
492+
convert_libmagic_pattern(zval *pattern, char *val, int len, int options);
493+
491494
typedef struct {
492495
char *buf;
493496
uint32_t offset;

ext/fileinfo/libmagic/funcs.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ FILE_RCSID("@(#)$File: funcs.c,v 1.92 2017/04/07 20:10:24 christos Exp $")
5656
# define PREG_OFFSET_CAPTURE (1<<8)
5757
#endif
5858

59-
extern public void convert_libmagic_pattern(zval *pattern, char *val, int len, int options);
60-
6159
protected int
6260
file_printf(struct magic_set *ms, const char *fmt, ...)
6361
{

0 commit comments

Comments
 (0)