Skip to content

Commit

Permalink
glob.h extern C the old fashioned way
Browse files Browse the repository at this point in the history
  • Loading branch information
Girgias committed Aug 24, 2024
1 parent 89fb354 commit 83cfb11
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions win32/glob.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
#ifndef _GLOB_H_
#define _GLOB_H_

#ifdef __cplusplus
extern "C" {
#endif

#ifdef PHP_EXPORTS
# define PHP_WIN_GLOB __declspec(dllexport)
#else
Expand Down Expand Up @@ -81,8 +85,11 @@ typedef struct {
#define GLOB_ABORTED (-2) /* Unignored error. */
#define GLOB_NOMATCH (-3) /* No match and GLOB_NOCHECK not set. */

BEGIN_EXTERN_C()
PHP_WIN_GLOB int glob(const char *, int, int (*)(const char *, int), glob_t *);
PHP_WIN_GLOB void globfree(glob_t *);
END_EXTERN_C()

#ifdef __cplusplus
}
#endif

#endif /* !_GLOB_H_ */

0 comments on commit 83cfb11

Please sign in to comment.