mirror of
https://github.com/pocketpy/pocketpy
synced 2026-03-24 22:20:18 +00:00
Compare commits
No commits in common. "7394683eaa1c12748480548fc90fb7c4bf10dc69" and "ccd00e83a5581f0a8bd57543c960aeb58b3a8286" have entirely different histories.
7394683eaa
...
ccd00e83a5
@ -5,6 +5,7 @@ project(pocketpy)
|
|||||||
set(CMAKE_C_STANDARD 11)
|
set(CMAKE_C_STANDARD 11)
|
||||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
|
include(FetchContent)
|
||||||
include(CMakeOptions.txt)
|
include(CMakeOptions.txt)
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
@ -77,8 +78,6 @@ endif()
|
|||||||
|
|
||||||
if(PK_ENABLE_MIMALLOC)
|
if(PK_ENABLE_MIMALLOC)
|
||||||
message(">> Fetching mimalloc")
|
message(">> Fetching mimalloc")
|
||||||
include(FetchContent)
|
|
||||||
|
|
||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
mimalloc
|
mimalloc
|
||||||
GIT_REPOSITORY https://github.com/microsoft/mimalloc.git
|
GIT_REPOSITORY https://github.com/microsoft/mimalloc.git
|
||||||
|
|||||||
@ -1,10 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "pocketpy/config.h"
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#if PK_ENABLE_OS
|
|
||||||
|
|
||||||
typedef void* c11_socket_handler;
|
typedef void* c11_socket_handler;
|
||||||
|
|
||||||
enum c11_address_family { C11_AF_INET = 2 };
|
enum c11_address_family { C11_AF_INET = 2 };
|
||||||
@ -26,5 +23,3 @@ int c11_socket_close(c11_socket_handler socket);
|
|||||||
int c11_socket_set_block(c11_socket_handler socket, int flag);
|
int c11_socket_set_block(c11_socket_handler socket, int flag);
|
||||||
c11_socket_handler c11_socket_invalid_socket_handler();
|
c11_socket_handler c11_socket_invalid_socket_handler();
|
||||||
int c11_socket_get_last_error();
|
int c11_socket_get_last_error();
|
||||||
|
|
||||||
#endif // PK_ENABLE_OS
|
|
||||||
@ -1,7 +1,5 @@
|
|||||||
#include "pocketpy/common/socket.h"
|
#include "pocketpy/common/socket.h"
|
||||||
|
|
||||||
#if PK_ENABLE_OS
|
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
#if defined (_WIN32) || defined (_WIN64)
|
#if defined (_WIN32) || defined (_WIN64)
|
||||||
@ -122,5 +120,3 @@ int c11_socket_get_last_error(){
|
|||||||
|
|
||||||
#undef SOCKET_HANDLERTOFD
|
#undef SOCKET_HANDLERTOFD
|
||||||
#undef SOCKET_FDTOHANDLER
|
#undef SOCKET_FDTOHANDLER
|
||||||
|
|
||||||
#endif // PK_ENABLE_OS
|
|
||||||
Loading…
x
Reference in New Issue
Block a user