Changeset 1547 for trunk/gsinstaller


Ignore:
Timestamp:
2000-09-15T16:36:53+12:00 (24 years ago)
Author:
sjboddie
Message:

An attempt to get compiling under gcc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsinstaller/gsProgman.cpp

    r1543 r1547  
    181181      if (this->platform->isUserAdministrator())
    182182    {
     183#if defined (__GNUC__)
     184      // this is a hack as windows port of gcc doesn't have CSIDL_COMMON_PROGRAMS defined
     185      if (SHGetSpecialFolderLocation(0, CSIDL_PROGRAMS, &pidl) != NOERROR)
     186#else
    183187      if (SHGetSpecialFolderLocation(0, CSIDL_COMMON_PROGRAMS, &pidl) != NOERROR)
     188#endif
    184189        {   
    185190          return false;
     
    241246      if (this->platform->isUserAdministrator())
    242247    {
     248#if defined (__GNUC__)
     249      // this is a hack as windows port of gcc doesn't have CSIDL_COMMON_PROGRAMS defined
     250      if (SHGetSpecialFolderLocation(0, CSIDL_PROGRAMS, &pidl) != NOERROR)
     251#else
    243252      if (SHGetSpecialFolderLocation(0, CSIDL_COMMON_PROGRAMS, &pidl) != NOERROR)
     253#endif
     254
    244255        {
    245256          return false;
     
    340351      if (this->platform->isUserAdministrator())
    341352    {
     353#if defined (__GNUC__)
     354      // this is a hack as windows port of gcc doesn't have CSIDL_COMMON_PROGRAMS defined
     355      if (SHGetSpecialFolderLocation(0, CSIDL_PROGRAMS, &pidl) != NOERROR)
     356#else
    342357      if (SHGetSpecialFolderLocation(0, CSIDL_COMMON_PROGRAMS, &pidl) != NOERROR)
     358#endif
    343359        {   
    344360          return false;
     
    397413      if (this->platform->isUserAdministrator())
    398414    {
     415#if defined (__GNUC__)
     416      // this is a hack as windows port of gcc doesn't have CSIDL_COMMON_PROGRAMS defined
     417      if (SHGetSpecialFolderLocation(0, CSIDL_PROGRAMS, &pidl) != NOERROR)
     418#else
    399419      if (SHGetSpecialFolderLocation(0, CSIDL_COMMON_PROGRAMS, &pidl) != NOERROR)
     420#endif
    400421        {
    401422          return false;
Note: See TracChangeset for help on using the changeset viewer.