]> git.mxchange.org Git - flightgear.git/blobdiff - Astro/solarsystem.cxx
Converted to new logstream debugging facility. This allows release
[flightgear.git] / Astro / solarsystem.cxx
index e59dfebdcc12e93973862b21e3fe0ddd46a31770..c3995f48eca89d22ff4a287c85ac194d28dae06c 100644 (file)
  * $Id$
  * (Log is kept at end of this file)
  **************************************************************************/
+
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
+#ifdef HAVE_WINDOWS_H
+#  include <windows.h>
+#endif
+
 #include <GL/glut.h>
 #include <XGL/xgl.h>
-#include <Debug/fg_debug.h>
+#include <Debug/logstream.hxx>
 #include <Time/sunpos.hxx>
 #include "solarsystem.hxx"
 
@@ -38,7 +47,8 @@ SolarSystem::SolarSystem(fgTIME *t)
 {
   if (theSolarSystem)
     {
-      fgPrintf(FG_GENERAL, FG_EXIT, "Error: only one solarsystem allowed\n");
+      FG_LOG( FG_GENERAL, FG_ALERT, "Error: only one solarsystem allowed" );
+      exit(-1);
     }
   theSolarSystem = this;
   ourSun     = new Star(t);