be defined by ZEND_DECLARE_GLOBALS(cwd)
#ifdef ZTS
#include "TSRM.h"
-static int cwd_globals_id;
-#else
-static zend_cwd_globals cwd_globals;
-endif
+#endif
ZEND_DECLARE_MODULE_GLOBALS(cwd);
# define CWDLS_CC , CWDLS_C
# define CWDG(v) (cwd_globals->v)
# define CWDLS_FETCH() zend_cwd_globals *cwd_globals = ts_resource(cwd_globals_id)
+CWD_API extern int cwd_globals_id;
#else
# define CWDLS_D void
# define CWDLS_DC
# define CWDLS_CC
# define CWDG(v) (cwd_globals.v)
# define CWDLS_FETCH()
+extern CWD_API zend_cwd_globals cwd_globals;
#endif
#endif /* VIRTUAL_CWD_H */