diff --git a/src/color.h b/src/color.h index e95af90..03dbe7c 100644 --- a/src/color.h +++ b/src/color.h @@ -5,7 +5,9 @@ // Copyright (c) 2010 LearnBoost // -#include +#ifndef __COLOR_PARSER_H__ +#define __COLOR_PARSER_H__ + #include #include @@ -248,7 +250,7 @@ rgba_create(uint32_t rgba) { * Return rgba from (r,g,b,a). */ -int32_t +inline int32_t rgba_from_rgba(uint8_t r, uint8_t g, uint8_t b, uint8_t a) { return r << 24 @@ -409,3 +411,5 @@ rgba_inspect(int32_t rgba) { , rgba & 0xFF ); } + +#endif /* __COLOR_PARSER_H__ */