imatix/zguide — pull request #223 by ichernev (2012-06-29 07:33:50+00:00)
Title: Fixed compilation issues in C++ examples

* `sleep(unsigned)` function is defined in `unistd.h`, so include this file
in zhelpers.hpp and sources that do not include `zhelpers.hpp`
* use `c` script from C examples, as it properly handles C++ linking

Also note that using `sleep` from `unistd.h` is not portable. The `s_sleep` function from `zhelpers.hpp` should be used instead. The build scripts `build` and `c` run on *nix only, so I guess portability to windows is not a main concern at the moment :)