sphair/ClanLib — pull request #45 by punkkeks (2014-12-28 11:12:15+00:00)
Title: Fixed linux builds

Fixed build of font files and also removed pragma once in source files

There is still a compile error in X11/font_config.cpp

> X11/font_config.cpp:77:7: error: cannot initialize a variable of type 'int' with an rvalue of type 'clan::FontWeight'
> int weight = desc.get_weight();
> ^ ~~~~~~~~~~~~~~~~~
> X11/font_config.cpp:82:41: error: call to 'abs' is ambiguous
> FC_PIXEL_SIZE, FcTypeDouble, (double) std::abs(desc.get_height()),
> ^~~~~~~~
> /usr/include/stdlib.h:774:12: note: candidate function
> extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
> ^
> /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../include/c++/4.9.2/cstdlib:166:3: note: candidate function
> abs(long __i) { return __builtin_labs(__i); }
> ^
> /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../include/c++/4.9.2/cstdlib:174:3: note: candidate function
> abs(long long __x) { return __builtin_llabs (__x); }
> ^
> X11/font_config.cpp:84:33: error: no member named 'get_italic' in 'clan::FontDescription'
> FC_SLANT, FcTypeInteger, desc.get_italic() ? FC_SLANT_ITALIC : FC_SLANT_ROMAN,
> ~~~~ ^
> X11/font_config.cpp:85:35: error: no member named 'get_fixed_pitch' in 'clan::FontDescription'
> FC_SPACING, FcTypeInteger, desc.get_fixed_pitch() ? FC_MONO : FC_PROPORTIONAL,
> ~~~~ ^
> 4 errors generated.

please fix this asap!