mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
work around GCC's wide string constant bug when compiling inline functions
svn path=/trunk/; revision=11748
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user