diff options
Diffstat (limited to 'Zend/config.w32.h')
-rw-r--r-- | Zend/config.w32.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Zend/config.w32.h b/Zend/config.w32.h new file mode 100644 index 0000000000..dac03e3b46 --- /dev/null +++ b/Zend/config.w32.h @@ -0,0 +1,41 @@ +#ifndef _ZEND_CONFIG_W32_H +#define _ZEND_CONFIG_W32_H + + +#include <string.h> +#include <windows.h> + +typedef unsigned long ulong; +typedef unsigned int uint; + +#define HAVE_ALLOCA 1 +#include <malloc.h> + +#define HAVE_DIRENT_H 0 + +#ifdef inline +#undef inline +#endif + +#define ZEND_DEBUG 1 + +#define zend_sprintf sprintf + +/* Visual C++ doesn't really work with inline for C */ +#define inline + + +#define DL_LOAD(libname) LoadLibrary(libname) +#define DL_FETCH_SYMBOL GetProcAddress +#define DL_UNLOAD FreeLibrary +#define DL_HANDLE HMODULE +#define ZEND_EXTENSIONS_SUPPORT 1 + +#ifdef COMPILE_LIBZEND +# define ZEND_API __declspec(dllexport) +#else +# define ZEND_API __declspec(dllimport) +#endif + + +#endif /* _ZEND_CONFIG_W32_H */
\ No newline at end of file |