]> granicus.if.org Git - php/commitdiff
Fix bug #50140: With default compilation option, php symbols are unresolved for nsapi
authorUwe Schindler <thetaphi@php.net>
Tue, 17 Nov 2009 21:17:49 +0000 (21:17 +0000)
committerUwe Schindler <thetaphi@php.net>
Tue, 17 Nov 2009 21:17:49 +0000 (21:17 +0000)
sapi/nsapi/nsapi.c

index 0ec84f429722f94b23b97aefcd6f937890503386..09154d60cbb896625fb47404b1cac8ac5c5c56a0 100644 (file)
  */
 #include "nsapi.h"
 
+/* fix for gcc4 visibility issue */
+#ifndef PHP_WIN32
+# undef NSAPI_PUBLIC
+# define NSAPI_PUBLIC PHPAPI
+#endif
+
 #define NSLS_D         struct nsapi_request_context *request_context
 #define NSLS_DC                , NSLS_D
 #define NSLS_C         request_context