Guys, how do I distinguish flirting from friendly behaviour?

When it comes to guys I can't distinguish flirting from friendly behaviour... My friend says this guy has been flirting with me, and it's so obvious even she noticed it while I didn't. I just thought he was being friendly.
So how do I tell friendly from flirty?
Guys, how do I distinguish flirting from friendly behaviour?
Post Opinion