Fixed warning for: duplicate 'pulseIn' declaration

Every file that includes Arduino.h is issued a warning "warning: redundant redeclaration of 'long unsigned int pulseIn(uint8_t, uint8_t, long unsigned int)' in same scope [-Wredundant-decls]".

This fix ensures that only one version is seen when using C or C++.