]> git.mxchange.org Git - simgear.git/blobdiff - simgear/structure/SGSmplhist.hxx
Some Linux platforms need <cstdio> for snprintf.
[simgear.git] / simgear / structure / SGSmplhist.hxx
index d56d66930422103940d0ff53a43a5011e20c7273..9dee635b90e83b89853844bda7133eeba5808e33 100644 (file)
@@ -13,24 +13,15 @@ implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
 PURPOSE.  See the GNU Library General Public License for more details.
 You should have received a copy of the GNU Library General Public
 License along with this library; if not, write to the Free Software
-Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301, USA.
 */
 
-#ifdef HAVE_CONFIG_H
-#include <simgear_config.h>
-#endif
 #ifndef SampleHistogram_h
-#ifdef __GNUG__
-#pragma interface
-#endif
 #define SampleHistogram_h 1
 
-#include <iostream>
-#include <fstream>
+#include <iosfwd>
 #include "SGSmplstat.hxx"
 
-using namespace std;
-
 extern const int SampleHistogramMinimum;
 extern const int SampleHistogramMaximum;
 
@@ -56,7 +47,7 @@ public:
 
   double bucketThreshold (int i);
   int inBucket (int i);
-  void printBuckets (ostream &);
+  void printBuckets (std::ostream &);
 
 };
 
@@ -64,7 +55,7 @@ public:
 inline int SampleHistogram::buckets ()
 {
   return (howManyBuckets);
-};
+}
 
 inline double SampleHistogram::bucketThreshold (int i)
 {