work around GCC's wide string constant bug when compiling inline functions

svn path=/trunk/; revision=11748
This commit is contained in:
Martin Fuchs 2004-11-21 14:26:14 +00:00
parent e1e1824939
commit 4e66d23d42
3 changed files with 14 additions and 1 deletions

View file

@ -661,7 +661,7 @@ void NotifyArea::Paint()
MemCanvas mem_dc;
SelectedBitmap bmp(mem_dc, CreateCompatibleBitmap(canvas, NOTIFYICON_SIZE, NOTIFYICON_SIZE));
RECT rect = {0, 0, NOTIFYICON_SIZE, NOTIFYICON_SIZE};
BLENDFUNCTION blend = {AC_SRC_OVER, 0, 128, 0};
BLENDFUNCTION blend = {AC_SRC_OVER, 0, 128, 0}; // 50 % visible
for(NotifyIconSet::const_iterator it=_sorted_icons.begin(); it!=_sorted_icons.end(); ++it) {
if (it->_dwState & NIS_HIDDEN) {

View file

@ -36,6 +36,12 @@
#endif
// work around GCC's wide string constant bug
#ifdef __GNUC__
const LPCTSTR sCFSTR_SHELLIDLIST = TEXT("Shell IDList Array");
#endif
// helper functions for string copying
LPSTR strcpyn(LPSTR dest, LPCSTR source, size_t count)

View file

@ -45,6 +45,13 @@ using namespace _com_util;
#endif
#endif
// work around GCC's wide string constant bug when compiling inline functions
#ifdef __GNUC__
extern const LPCTSTR sCFSTR_SHELLIDLIST;
#undef CFSTR_SHELLIDLIST
#define CFSTR_SHELLIDLIST sCFSTR_SHELLIDLIST
#endif
// Exception Handling