Include <iostream> without the .h on modern C++
authorPeter Howkins <flibble@users.sourceforge.net>
Tue, 13 Mar 2012 17:31:56 +0000 (17:31 +0000)
committerPeter Howkins <flibble@users.sourceforge.net>
Tue, 13 Mar 2012 17:31:56 +0000 (17:31 +0000)
cde/programs/dtsearchpath/dtappg/Options.C
cde/programs/dtsearchpath/dtappg/dtappgather.C

index fa242a0df09086023448562daa92fe32a01c34ca..24e11cdc0633b57ddeca602ab1701de08b86dc9f 100644 (file)
 
 #include "Options.h"
 #include <stdlib.h>
+#if defined(linux)
+#include <iostream>
+#else
 #include <iostream.h>
+#endif
 #include <stdio.h>
 #include <pwd.h>
 
index 555291595c2ccb1f91e307085641b193c25b87f2..ee09040d5481df2cb8bfc4f923f00208d55832e3 100644 (file)
 #include "dtappgather.h"
 #include "DirIterator.h"
 #include <stdlib.h>
+#if defined(linux)
+#include <iostream>
+#else
 #include <iostream.h>
+#endif
 
 Options * options;