release 2.6.0
[m6w6/ext-http] / src / php_http_curl.h
1 /*
2 +--------------------------------------------------------------------+
3 | PECL :: http |
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted provided that the conditions mentioned |
7 | in the accompanying LICENSE file are met. |
8 +--------------------------------------------------------------------+
9 | Copyright (c) 2004-2014, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
11 */
12
13 #ifndef PHP_HTTP_CURL_H
14 #define PHP_HTTP_CURL_H
15
16 #if PHP_HTTP_HAVE_CURL
17
18 #include <curl/curl.h>
19 #define PHP_HTTP_CURL_VERSION(x, y, z) (LIBCURL_VERSION_NUM >= (((x)<<16) + ((y)<<8) + (z)))
20 #define PHP_HTTP_CURL_FEATURE(f) (curl_version_info(CURLVERSION_NOW)->features & (f))
21
22 #if !PHP_HTTP_CURL_VERSION(7,21,5)
23 # define CURLE_UNKNOWN_OPTION CURLE_FAILED_INIT
24 #endif
25
26 PHP_MINIT_FUNCTION(http_curl);
27 PHP_MSHUTDOWN_FUNCTION(http_curl);
28
29 #endif /* PHP_HTTP_HAVE_CURL */
30
31 #endif /* PHP_HTTP_CURL_H */
32
33 /*
34 * Local variables:
35 * tab-width: 4
36 * c-basic-offset: 4
37 * End:
38 * vim600: noet sw=4 ts=4 fdm=marker
39 * vim<600: noet sw=4 ts=4
40 */
41