Fix compilation on Windows.
authorJoakim Soderberg <joakim.soderberg@gmail.com>
Tue, 18 Feb 2014 12:38:14 +0000 (13:38 +0100)
committerAndy Green <andy.green@linaro.org>
Wed, 19 Feb 2014 00:37:50 +0000 (08:37 +0800)
commit6596e4b2f54c33a1bcfc060f125a5e1ff4a53abd
tree098971219befed4088a4f8d8d7cc7ecfb6b32525
parente7fd8b199ed1c40fbd1a27ff7cf14aadb8942c87
Fix compilation on Windows.

C89 which Microsofts compiler only support does not allow variable
declarations anywhere but at the start of a scope.

Also, only try to copy the test-server files if they actually exists. For
instance the OpenSSL cert generation fails if you run cmake under the git
bash shell on Windows (won't work with the unix method either) so that
file will be missing... This would result in a compilation error when
tests where turned on.
CMakeLists.txt
lib/libwebsockets.c