network: use HAVE_THREADS instead of local hack
authorMans Rullgard <mans@mansr.com>
Fri, 26 Oct 2012 18:33:59 +0000 (19:33 +0100)
committerMans Rullgard <mans@mansr.com>
Sat, 27 Oct 2012 12:11:17 +0000 (13:11 +0100)
commit9efbfe57e082b0f42bf0c830a4fdc6b80d2b13ca
treefd49312ba329c992a276c46739713cec05e60dc0
parent67a68dcec2271336c859d1fbd8f40c268f54ec8a
network: use HAVE_THREADS instead of local hack

HAVE_THREADS is set in config.h if pthreads or w32threads is
available, which presumably the proper condition here.

Also fixes undefined behaviour in preprocessor directives.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavformat/network.c