Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8069


Ignore:
Timestamp:
Mar 13, 2011, 10:05:11 PM (14 years ago)
Author:
rgrieder
Message:

MinGW quick fix for OIS (doesn't yet work though).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/mac_osx/src/external/ois/win32/Win32JoyStick.cpp

    r7506 r8069  
    3838      x = NULL;         \
    3939   }
     40#endif
     41
     42// (Orxonox): MinGW doesn't have swscanf_s
     43#ifdef __MINGW32__
     44#       define swscanf_s swscanf
    4045#endif
    4146
     
    584589
    585590    // Create WMI
     591    // (Orxonox): Fix for MinGW
     592#ifdef __MINGW32__
     593    hr = CoCreateInstance(CLSID_WbemLocator, NULL, CLSCTX_INPROC_SERVER, IID_IWbemLocator, (LPVOID*)&pIWbemLocator);
     594#else
    586595    hr = CoCreateInstance(__uuidof(WbemLocator), NULL, CLSCTX_INPROC_SERVER, __uuidof(IWbemLocator), (LPVOID*)&pIWbemLocator);
     596#endif
    587597    if( FAILED(hr) || pIWbemLocator == NULL )
    588598        goto LCleanup;
Note: See TracChangeset for help on using the changeset viewer.