]> granicus.if.org Git - php/commitdiff
fix ftok() export
authorAnatol Belski <ab@php.net>
Sat, 10 Oct 2015 16:59:22 +0000 (18:59 +0200)
committerAnatol Belski <ab@php.net>
Sat, 10 Oct 2015 17:15:02 +0000 (19:15 +0200)
win32/ftok.c
win32/ipc.h

index 9e79c708ed2f822804337ecbe626101e22c7ebce..1ae8fda17977a6b61686a8ce1421bb22e16b2dab 100644 (file)
@@ -22,7 +22,7 @@
 #include <sys/stat.h>
 
 
-key_t
+PHPAPI key_t
 ftok(const char *pathname, int proj_id)
 {
        HANDLE fh;
index ccae6e511a60b28bbdce63269ec6ac33fef38fb6..1d4acfae28ff3278994fdf9926a7f02375da8735 100644 (file)
 #ifndef PHP_WIN32_IPC_H
 #define PHP_WIN32_IPC_H 1
 
+#include "php.h"
+
 typedef int key_t;
 
-key_t ftok(const char *path, int id);
+PHPAPI key_t ftok(const char *path, int id);
 
 
 #endif /* PHP_WIN32_IPC_H */