/[svn]/linuxsampler/trunk/src/common/global.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/common/global.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1807 by persson, Sun Nov 16 19:19:26 2008 UTC revision 1808 by persson, Sun Dec 14 15:43:18 2008 UTC
# Line 37  typedef std::string String; Line 37  typedef std::string String;
37    
38  #if defined(WIN32)  #if defined(WIN32)
39  #include <windows.h>  #include <windows.h>
40    
41    // modern MinGW has usleep
42    #if __MINGW32_MAJOR_VERSION < 3 || \
43        (__MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION < 15)
44  #define usleep(a) Sleep(a/1000)  #define usleep(a) Sleep(a/1000)
45    #endif
46    
47  #define sleep(a) Sleep(a*1000)  #define sleep(a) Sleep(a*1000)
48  typedef unsigned int uint;  typedef unsigned int uint;
49  // FIXME: define proper functions which do proper alignement under Win32  // FIXME: define proper functions which do proper alignement under Win32

Legend:
Removed from v.1807  
changed lines
  Added in v.1808

  ViewVC Help
Powered by ViewVC