From c6d49ec5029651f7989fbb14528667af8417580a Mon Sep 17 00:00:00 2001
From: curt <curt>
Date: Sat, 23 Oct 1999 04:19:25 +0000
Subject: [PATCH] Cygwin32 fixes.

---
 src/WeatherCM/FGPhysicalProperties.h |  8 ++++++++
 src/WeatherCM/FGPhysicalProperty.h   |  9 +++++++++
 src/WeatherCM/FGTurbulenceItem.h     | 11 +++++++++++
 src/WeatherCM/FGVoronoi.h            | 10 +++++++++-
 src/WeatherCM/FGWindItem.h           | 11 +++++++++++
 src/WeatherCM/Makefile.am            |  1 +
 6 files changed, 49 insertions(+), 1 deletion(-)

diff --git a/src/WeatherCM/FGPhysicalProperties.h b/src/WeatherCM/FGPhysicalProperties.h
index 3d235f291..1b669ec76 100644
--- a/src/WeatherCM/FGPhysicalProperties.h
+++ b/src/WeatherCM/FGPhysicalProperties.h
@@ -49,8 +49,16 @@ HISTORY
 /****************************************************************************/
 /* INCLUDES								    */
 /****************************************************************************/
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
 #include <Include/compiler.h>
 
+#ifdef HAVE_WINDOWS_H
+#  include <windows.h>
+#endif
+
 #include <iostream>
 #include <vector>
 #include <map>
diff --git a/src/WeatherCM/FGPhysicalProperty.h b/src/WeatherCM/FGPhysicalProperty.h
index e54658803..ef8098cd5 100644
--- a/src/WeatherCM/FGPhysicalProperty.h
+++ b/src/WeatherCM/FGPhysicalProperty.h
@@ -49,8 +49,17 @@ HISTORY
 /****************************************************************************/
 /* INCLUDES								    */
 /****************************************************************************/
+
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
 #include <Include/compiler.h>
 
+#ifdef HAVE_WINDOWS_H
+#  include <windows.h>
+#endif
+
 #include <vector>
 
 #include "sg.h"
diff --git a/src/WeatherCM/FGTurbulenceItem.h b/src/WeatherCM/FGTurbulenceItem.h
index 2b9fa3c7c..41117caaa 100644
--- a/src/WeatherCM/FGTurbulenceItem.h
+++ b/src/WeatherCM/FGTurbulenceItem.h
@@ -47,6 +47,17 @@ HISTORY
 /****************************************************************************/
 /* INCLUDES								    */
 /****************************************************************************/
+
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
+#include <Include/compiler.h>
+
+#ifdef HAVE_WINDOWS_H
+#  include <windows.h>
+#endif
+
 #include "sg.h"
 
 #include "FGWeatherDefs.h"
diff --git a/src/WeatherCM/FGVoronoi.h b/src/WeatherCM/FGVoronoi.h
index c96894ee1..da4b337db 100644
--- a/src/WeatherCM/FGVoronoi.h
+++ b/src/WeatherCM/FGVoronoi.h
@@ -52,7 +52,15 @@ HISTORY
 /****************************************************************************/
 /* INCLUDES								    */
 /****************************************************************************/
-#include "compiler.h"
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
+#include <Include/compiler.h>
+
+#ifdef HAVE_WINDOWS_H
+#  include <windows.h>
+#endif
 
 #include <vector>
 
diff --git a/src/WeatherCM/FGWindItem.h b/src/WeatherCM/FGWindItem.h
index b06dbd2c5..697b0eb3a 100644
--- a/src/WeatherCM/FGWindItem.h
+++ b/src/WeatherCM/FGWindItem.h
@@ -47,6 +47,17 @@ HISTORY
 /****************************************************************************/
 /* INCLUDES								    */
 /****************************************************************************/
+
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
+#include <Include/compiler.h>
+
+#ifdef HAVE_WINDOWS_H
+#  include <windows.h>
+#endif
+
 #include "sg.h"
 
 #include "FGWeatherDefs.h"
diff --git a/src/WeatherCM/Makefile.am b/src/WeatherCM/Makefile.am
index a6a8379e1..7a4b6a3bd 100644
--- a/src/WeatherCM/Makefile.am
+++ b/src/WeatherCM/Makefile.am
@@ -14,6 +14,7 @@ libWeatherCM_a_SOURCES = \
 	FGVaporPressureItem.cpp FGVaporPressureItem.h \
 	FGVoronoi.cpp FGVoronoi.h \
 	FGWeatherDefs.h FGWeatherFeature.h FGWeatherUtils.h \
+	FGWeatherVectorWrap.h \
 	FGWindItem.cpp FGWindItem.h
 
 INCLUDES += -I$(top_builddir) -I$(top_builddir)/Lib -I$(top_builddir)/Simulator