1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

net: ensure that net and net.unix can be imported together in the same program

This commit is contained in:
Delyan Angelov
2022-02-18 11:23:45 +02:00
parent 14073ac0fe
commit c9867a9ae4
9 changed files with 81 additions and 101 deletions

View File

@ -1,18 +1,5 @@
module net
$if windows {
$if msvc {
// Force these to be included before afunix!
#include <winsock2.h>
#include <ws2tcpip.h>
#include <afunix.h>
} $else {
#include "@VMODROOT/vlib/net/afunix.h"
}
} $else {
#include <sys/un.h>
}
fn test_diagnostics() {
dump(aoffset)
eprintln('--------')