[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: KDE/kdelibs/win/include
From:       Jarosław Staniek <js () iidea ! pl>
Date:       2005-10-17 14:55:07
Message-ID: 4353BB4B.8020100 () iidea ! pl
[Download RAW message or body]

Ralf Habacker said the following, On 2005-10-17 16:46:

> SVN commit 471382 by habacker:
> 
> on mingw we need the original HKEY definition,because it is c++
> 
>  M  +5 -1      win32_utils.h  
> 
> 
> --- trunk/KDE/kdelibs/win/include/win32_utils.h #471381:471382
> @@ -50,8 +50,11 @@
>  /**
>    predefined registry root keys
>  */
> -
> +#ifdef __MINGW32__
> +#include <windows.h>
> +#else 
>  #ifndef HKEY
> +#warning KKEY defined
>  #define HKEY void*
>  #endif
>  #ifndef HKEY_CLASSES_ROOT
> @@ -66,6 +69,7 @@
>  #ifndef HKEY_USERS
>  #define HKEY_USERS	((HKEY)0x80000003)
>  #endif 
> +#endif
>  
>  /**
>   \return a value from MS Windows native registry.
> 

Not sure but #include <windows.h> (providing many weird symbols) here can 
break some code in apps that use win32_utils.h...

-- 
regards / pozdrawiam,
  Jaroslaw Staniek / OpenOffice Polska
  Kexi Developer:
      http://www.kexi-project.org | http://koffice.org/kexi
  KDE3, KDE4 libraries for developing MS Windows applications:
      http://wiki.kde.org/tiki-index.php?page=KDElibs+for+win32
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic