The article you linked literally says that there are two definitions: one for real numbers and another for complex numbers. Thanks for the info.
A special cases of the general definition where im(z)==0 yields an expression where some parts are multiplied by zero, and can then be omitted entirely.
This means that there is one definition. You can mentally ignore some parts of this when dealing with reals.