Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 29, 2007, 4:21:30 PM (18 years ago)
Author:
rgrieder
Message:
  • adjusted the entire source to compile under windows visual studio too:
  • added some ugly conversions
  • changed some illegal code pieces (gcc however accepted it)
  • added a few files from reto's framework to evade linker errors (no more dynamic linking)
  • inserted some 'return true' to justify the return type
  • excluded the levelLoader in the orxonox.cc (couldn't make it work, parsing error)
  • wrote about 5 code #branches to compensate for missing usleep() under windows
Location:
code/branches/FICN
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN

    • Property svn:ignore set to
      FICN.sln
      FICN.ncb
      FICN.vcproj
      FICN.vcproj.RGRIEDERT60.rgrieder.user
      FICN.suo
      obj
  • code/branches/FICN/src/network/dummyclient.cc

    r337 r346  
    88#include <enet/enet.h>
    99#include "PacketManager.h"
     10
     11// workaround for usleep(int) under windows
     12#ifdef WIN32
     13#include "winbase.h"
     14#endif
     15
    1016
    1117using namespace std;
     
    6773      cout << "failed sending" << endl;
    6874    }
     75// under windows, use Sleep(milliseconds) instead of usleep(microseconds)
     76#ifdef WIN32
     77    Sleep(1000);
     78#else
    6979    usleep(1000000);
     80#endif
    7081  }
    7182
Note: See TracChangeset for help on using the changeset viewer.