fix freertos include

This commit is contained in:
lyon 2023-01-14 14:41:57 +08:00
parent 807b9e9e23
commit 41720e8fef
2 changed files with 2 additions and 6 deletions

View File

@ -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);

View File

@ -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) {