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:
@ -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('--------')
|
||||
|
Reference in New Issue
Block a user