Commit 56a790e0 authored by Romain Bignon's avatar Romain Bignon

fix compilation with win32

parent 8e8270ba
/* src/main.cpp - Main file
*
* Copyright (C) 2005-2007 Romain Bignon <Progs@headfucking.net>
* Copyright (C) 2005-2011 Romain Bignon <romain@menareants.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -55,7 +55,7 @@
#include <functional>
#if !defined(DEBUG) && defined(UNSTABLE)
#error Vous tentez de compiler une version instable. Si vous êtes certain de vouloir la compiler, rajoutez --enable-debug dans les options du script ./configure
#error You are tring to compile an unstable version. If you are sure, run ./configure with --enable-debug
#endif
#ifdef WIN32
......@@ -437,9 +437,9 @@ TCredits::TCredits(ECImage* w)
Memo->SetShadowed();
Memo->AddItem(_("Contributors:\n"
"\n"
"=Programmation=\n"
"=Programming=\n"
"- lodesi: patches for defense tower and other effects.\n"
"- phh: patche for the plane.\n"
"- phh: patch for the plane.\n"
"\n"
"=Others=\n"
"- Anicée: for her voice.\n"
......
/* src/Sockets.h- Header of Sockets.cpp
*
* Copyright (C) 2005-2007 Romain Bignon <Progs@headfucking.net>
* Copyright (C) 2005-2011 Romain Bignon <romain@menareants.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -23,14 +23,16 @@
/* Ça peut parraitre bizare mais c'est pour éviter une inclusion de winsock2.h qui cause des merdes */
typedef unsigned int SOCKET;
#if defined(WIN32) && !defined(WINSOCK2_H) && !defined(FD_SETSIZE)
#define FD_SETSIZE 64
#ifdef WIN32
# if !defined(WINSOCK2_H) && !defined(FD_SETSIZE)
# define FD_SETSIZE 64
typedef struct fd_set {
unsigned int fd_count;
SOCKET fd_array[FD_SETSIZE];
} fd_set;
# endif
#else
#include <sys/select.h>
# include <sys/select.h>
#endif
const int MAXBUFFER=1024;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment