In the begining of 20th century there were a plenty of philosophies each one giving its own definition. Nowadays, there are foundations of mathematics giving reducionistic definitions of mathematics.
Mathematics can have several definitions, according to our prefered foundation of mathematics. It can be the logical theory that deals with sets or the algebraic theory that deals with categories. There is a plenty of alternative foundations, I will refer a theory mentioned before: type theory.