Created port.h, plus some code removal and refactoring.

Done.

Thanks,
Dima

http://dimakorolev.com/ | http://www.linkedin.com/in/dimakorolev |
dmitry.korolev@gmail.com | +1 (312) 593 2783


On Sat, Dec 13, 2014 at 2:01 AM, Alex Zolotarev <notifications@github.com>
wrote:
>
> In port.h
> <https://github.com/KnowSheet/Bricks/pull/16#discussion-diff-21787847>:
>
> > @@ -0,0 +1,41 @@
> > +// Cross-platform portability header.
> > +//
> > +// Ensures that one and only one of BRICKS_{POSIX,APPLE,ANDROID} is defined.
> > +// Keeps the one provided externally. Defaults to environmental setting is none has been defined.
> > +
> > +#ifndef BRICKS_PORT_H
> > +#define BRICKS_PORT_H
> > +
> > +#include <string>
> > +
> > +#ifdef COUNT
>
> Bad name, can be defined by some rogue 3party include and fail compilation.
> BRICKS_PORT_COUNT or something similar is much better.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/KnowSheet/Bricks/pull/16/files#r21787847>.
>