#1 fixing compilation issue under MSVC

closed
nobody
None
5
2007-03-03
2007-02-09
Roy Tam
No

makes FreeRA compiles in MSVC environment.
include/unit.h:
#include "ai.h"
+ #include <time.h>

#define LOOPEND_TURN

include/selection.h:
#include "SDL.h"
+ #include <time.h>

class Unit;

ui/pause_menu.cpp
#include "sdllayer.h"

+ #ifdef _MSC_VER
+ #include <Windows.h>
+ #define usleep(x) Sleep(((x) / 1000))
+ #endif

PauseMenuClass::PauseMenuClass():MenuFont("type.fnt"), VersionFont ("grad6fnt.fnt")

Discussion

  • Joris_M

    Joris_M - 2007-02-10

    Logged In: YES
    user_id=1680991
    Originator: NO

    Just commited this to SVN :)

    Thanks Roy Tam

     
  • Joris_M

    Joris_M - 2007-02-10
    • status: open --> closed
     
  • Roy Tam

    Roy Tam - 2007-02-10

    MSVC 7.1 project files

     
  • Roy Tam

    Roy Tam - 2007-02-10
    • status: closed --> open
     
  • Roy Tam

    Roy Tam - 2007-02-10

    Logged In: YES
    user_id=746233
    Originator: YES

    File Added: msvc71.7z

     
  • Joris_M

    Joris_M - 2007-02-10

    Logged In: YES
    user_id=1680991
    Originator: NO

    Thanks ;)

     
  • Joris_M

    Joris_M - 2007-03-03
    • status: open --> closed
     
  • Joris_M

    Joris_M - 2007-03-03

    Logged In: YES
    user_id=1680991
    Originator: NO

    Forgot to change the status a while ago!!

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks