mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Remove of @extname in stdlib.
This commit is contained in:
@@ -8,11 +8,11 @@ const int F_SETFL = 4;
|
||||
|
||||
define NativeSocket = distinct int;
|
||||
|
||||
extern fn NativeSocket socket(int af, int type, int protocol) @extname("socket");
|
||||
extern fn NativeSocket socket(int af, int type, int protocol) @extern("socket");
|
||||
extern fn int getaddrinfo(ZString nodename, ZString servname, AddrInfo* hints, AddrInfo** res);
|
||||
extern fn void freeaddrinfo(AddrInfo* addr);
|
||||
extern fn int connect(NativeSocket, void*, usz);
|
||||
extern fn int fcntl(NativeSocket socket, int cmd, ...) @extname("fcntl");
|
||||
extern fn int fcntl(NativeSocket socket, int cmd, ...) @extern("fcntl");
|
||||
extern fn int close(NativeSocket);
|
||||
|
||||
macro void! NativeSocket.close(NativeSocket this)
|
||||
|
||||
@@ -24,7 +24,7 @@ struct AddrInfo
|
||||
|
||||
define NativeSocket = distinct uptr;
|
||||
|
||||
extern fn int wsa_startup(int, void*) @extname("WSAStartup");
|
||||
extern fn int wsa_startup(int, void*) @extern("WSAStartup");
|
||||
extern fn int ioctlsocket(NativeSocket, long cmd, ulong *argp);
|
||||
extern fn int closesocket(NativeSocket);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user