A mental illness is a mental abnormality that significantly impacts on your quality of life or the lives of those around you. That's the definition.
At some point you have to draw an arbitrary line, and even then it's frequently a guessing game working out on which side of the line someone actually lies.