Skip to content

Commit 9f27624

Browse files
committed
fix ftok() export
1 parent 49fe59e commit 9f27624

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

win32/ftok.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include <sys/stat.h>
2323

2424

25-
key_t
25+
PHPAPI key_t
2626
ftok(const char *pathname, int proj_id)
2727
{
2828
HANDLE fh;

win32/ipc.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@
1919
#ifndef PHP_WIN32_IPC_H
2020
#define PHP_WIN32_IPC_H 1
2121

22+
#include "php.h"
23+
2224
typedef int key_t;
2325

24-
key_t ftok(const char *path, int id);
26+
PHPAPI key_t ftok(const char *path, int id);
2527

2628

2729
#endif /* PHP_WIN32_IPC_H */

0 commit comments

Comments
 (0)