Update search.h

Added re-definition checks using the preprocessor