mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-22 10:19:05 +00:00
Simplify net.c
The platform-specific code for net.c was implemented in sys/*/net.c. But the differences are quite limited, so use ifdef-blocks in the single net.c instead.
This commit is contained in:
parent
229eeb24a2
commit
db6252e52b
4 changed files with 30 additions and 48 deletions
|
@ -76,11 +76,9 @@ cc = meson.get_compiler('c')
|
|||
|
||||
if host_machine.system() == 'windows'
|
||||
src += [ 'src/sys/win/command.c' ]
|
||||
src += [ 'src/sys/win/net.c' ]
|
||||
dependencies += cc.find_library('ws2_32')
|
||||
else
|
||||
src += [ 'src/sys/unix/command.c' ]
|
||||
src += [ 'src/sys/unix/net.c' ]
|
||||
endif
|
||||
|
||||
conf = configuration_data()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue