Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 29, 2007, 4:21:30 PM (16 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/PacketBufferTestExt.cc

    r337 r346  
    77
    88using namespace network;
     9
     10// workaround for usleep(int) under windows
     11#ifdef WIN32
     12#include "winbase.h"
     13#endif
    914
    1015
     
    1823ENET_PACKET_FLAG_RELIABLE);
    1924    std::cout << i << ": pushing " << packet->data << std::endl;
    20     test->push(packet);
     25    test->push((ENetEvent*)packet);
    2126    if(i==5)
     27// under windows, use Sleep(milliseconds) instead of usleep(microseconds)
     28#ifdef WIN32
     29      Sleep(200);
     30#else
    2231      usleep(200000);
     32#endif
    2333  }
    2434  test->setClosed(true);
Note: See TracChangeset for help on using the changeset viewer.