#ifndef __SG_ISTREAM
#define __SG_ISTREAM 1
-#if defined(sgi) && !defined(__GNUC__)
+# include <iostream>
+
+# if defined(sgi) && !defined(__GNUC__)
# include <stream.h>
-# include <iostream>
+# include <string>
+
+ using std::getline;
-#endif
+# endif
#endif // !__SG_ISTREAM