#include "vecmath.h" // If you want to use "inline", then do that in the .h-file on the function definition // and in the .c-file write: extern inline functionName(...); // See here: http://stackoverflow.com/questions/5369888/how-to-properly-inline-and-use-an-inline-function-in-c99-build-fails vec2f vec2fSub(vec2f v1, vec2f v2) { vec2f v; v.x = v1.x - v2.x; v.y = v1.y - v2.y; return v; } float vec2fLength(vec2f v) { return sqrt(v.x * v.x + v.y * v.y); }