Skip to content

Commit 83cfb11

Browse files
committed
glob.h extern C the old fashioned way
1 parent 89fb354 commit 83cfb11

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

win32/glob.h

+9-2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
#ifndef _GLOB_H_
4343
#define _GLOB_H_
4444

45+
#ifdef __cplusplus
46+
extern "C" {
47+
#endif
48+
4549
#ifdef PHP_EXPORTS
4650
# define PHP_WIN_GLOB __declspec(dllexport)
4751
#else
@@ -81,8 +85,11 @@ typedef struct {
8185
#define GLOB_ABORTED (-2) /* Unignored error. */
8286
#define GLOB_NOMATCH (-3) /* No match and GLOB_NOCHECK not set. */
8387

84-
BEGIN_EXTERN_C()
8588
PHP_WIN_GLOB int glob(const char *, int, int (*)(const char *, int), glob_t *);
8689
PHP_WIN_GLOB void globfree(glob_t *);
87-
END_EXTERN_C()
90+
91+
#ifdef __cplusplus
92+
}
93+
#endif
94+
8895
#endif /* !_GLOB_H_ */

0 commit comments

Comments
 (0)