File tree 2 files changed +23
-0
lines changed
2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
+ /*
19
+ * The following class is defined in mbed libraries, in case of STM32H7 include the original library
20
+ */
21
+ #if defined __has_include
22
+ # if __has_include(<utility/http_parsed_url.h>)
23
+ # include < utility/http_parsed_url.h>
24
+ # else
25
+ # define NO_HTTP_PARSED
26
+ # endif
27
+ #endif
28
+
29
+ #ifdef NO_HTTP_PARSED
18
30
#ifndef _MBED_HTTP_PARSED_URL_H_
19
31
#define _MBED_HTTP_PARSED_URL_H_
20
32
@@ -92,3 +104,5 @@ class ParsedUrl {
92
104
};
93
105
94
106
#endif // _MBED_HTTP_PARSED_URL_H_
107
+ #endif // NO_HTTP_PARSED
108
+ #undef NO_HTTP_PARSED
Original file line number Diff line number Diff line change
1
+ #if defined __has_include
2
+ # if ! __has_include (< utility /http_parser /http_parser .h > ) && ! __has_include (< http_parser .h > )
3
+ # define NO_HTTP_PARSER
4
+ # endif
5
+ #endif
6
+
7
+ #ifdef NO_HTTP_PARSER
1
8
/* Based on src/http/ngx_http_parse.c from NGINX copyright Igor Sysoev
2
9
*
3
10
* Additional changes are licensed under the same terms as NGINX and
@@ -580,3 +587,5 @@ http_parser_version(void) {
580
587
HTTP_PARSER_VERSION_MINOR * 0x00100 |
581
588
HTTP_PARSER_VERSION_PATCH * 0x00001 ;
582
589
}
590
+
591
+ #endif // NO_HTTP_PARSER
You can’t perform that action at this time.
0 commit comments