mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
fix freertos include
This commit is contained in:
parent
807b9e9e23
commit
41720e8fef
@ -4,10 +4,6 @@
|
||||
you need to override them in your platform.
|
||||
*/
|
||||
|
||||
#if !PIKASCRIPT_VERSION_REQUIRE_MINIMUN(1, 12, 0)
|
||||
#error "Error: PikaScript version must be greater than 1.12.0"
|
||||
#endif
|
||||
|
||||
PIKA_WEAK int pika_platform_socket(int __domain, int __type, int __protocol) {
|
||||
#if defined(__linux__) || PIKA_LWIP_ENABLE
|
||||
return socket(__domain, __type, __protocol);
|
||||
|
@ -1,8 +1,8 @@
|
||||
#include "_socket_socket.h"
|
||||
#include "PikaPlatform_socket.h"
|
||||
|
||||
#if !PIKASCRIPT_VERSION_REQUIRE_MINIMUN(1, 10, 4)
|
||||
#error "This library requires PikaScript version 1.10.4 or higher"
|
||||
#if !PIKASCRIPT_VERSION_REQUIRE_MINIMUN(1, 12, 0)
|
||||
#error "This library requires PikaScript version 1.12.0 or higher"
|
||||
#endif
|
||||
|
||||
void _socket_socket__init(PikaObj* self) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user