# include <config.h>
#endif
+#ifdef HAVE_WINDOWS_H
+#include <windows.h>
+#endif
+
#include <simgear/compiler.h>
#include <fstream>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow) {
- logbuf::has_no_console();
main( __argc, __argv );
}
#endif
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#endif
# include "config.h"
#endif
+#ifdef HAVE_WINDOWS_H
+#include <windows.h>
+#endif
+
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h> // gettimeofday
#endif
if(naIsNil(s)) continue;
buf += naStr_data(s);
}
- SG_LOG(SG_NASAL, (sgDebugPriority) priority.num, buf);
+ SG_LOG(SG_NASAL, (sgDebugPriority)(int) priority.num, buf);
return naNum(buf.length());
}