]> git.mxchange.org Git - flightgear.git/commitdiff
MSVC and MingW fixes
authorehofman <ehofman>
Sun, 20 Apr 2003 19:42:07 +0000 (19:42 +0000)
committerehofman <ehofman>
Sun, 20 Apr 2003 19:42:07 +0000 (19:42 +0000)
src/MultiPlayer/mpplayer.cxx
src/MultiPlayer/multiplayrxmgr.cxx
src/MultiPlayer/multiplaytxmgr.cxx

index d40abec4693e91765208fdcb7dcf6a9559619d18..adfe19e52e5702ac6c40679b89a31a59dc7417b7 100644 (file)
 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 //
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#ifdef FG_MPLAYER_AS
 
 /******************************************************************
 * $Id$
@@ -38,7 +43,7 @@
 #include "mpplayer.hxx"
 
 #include <stdlib.h>
-#ifndef _MSC_VER
+#if !(defined(_MSC_VER) || defined(__MINGW32__))
 # include <netdb.h>
 # include <sys/socket.h>
 # include <netinet/in.h>
@@ -307,3 +312,5 @@ void MPPlayer::FillMsgHdr(T_MsgHdr *MsgHdr, const int iMsgId) {
 
 }
 
+#endif // FG_MPLAYER_AS
+
index 00322bdb2a7e1d1a2e17bcf69fd0848d5931b6b8..33f5f1aa655b8d5bee3c1ce4c9564cd7e660dfd1 100644 (file)
 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 //
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#ifdef FG_MPLAYER_AS
 
 /******************************************************************
 * $Id$
@@ -51,7 +56,7 @@
 ******************************************************************/
 
 #include <sys/types.h>
-#ifndef _MSC_VER
+#if !(defined(_MSC_VER) || defined(__MINGW32__))
 # include <sys/socket.h>
 # include <netinet/in.h>
 # include <arpa/inet.h>
@@ -353,4 +358,5 @@ void FGMultiplayRxMgr::Update(void) {
 
 }
 
+#endif // FG_MPLAYER_AS
 
index 9373a09bb7c75b3d9d93116234d37c421d80bbdc..4ec00060207c93340791c166b5523e4977ed5c2d 100644 (file)
 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 //
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#ifdef FG_MPLAYER_AS
+
 /******************************************************************
 * $Id$
 *
@@ -31,7 +37,7 @@
 ******************************************************************/
 
 #include <sys/types.h>
-#ifndef _MSC_VER
+#if !(defined(_MSC_VER) || defined(__MINGW32__))
 # include <sys/socket.h>
 # include <netinet/in.h>
 # include <arpa/inet.h>
@@ -235,3 +241,5 @@ void FGMultiplayTxMgr::SendTextMessage(const string &sMsgText) const {
 
 }
 
+#endif // FG_MPLAYER_AS
+