Fixed missing C++ ifdef.