зеркало из https://github.com/mozilla/pjs.git
hack hack, wonderful hack
undef the index macro for VACPP I guess this is a VACPP bug, we had to do this in js, but why name a function such a common macro?
This commit is contained in:
Родитель
3ba899f432
Коммит
e7ce58cd84
|
@ -221,6 +221,13 @@ static FrameCtorDebugFlags gFlags[] = {
|
|||
#include "nsPopupSetFrame.h"
|
||||
#include "nsOutlinerColFrame.h"
|
||||
|
||||
// To kill #define index(a,b) strchr(a,b) macro in Toolkit types.h
|
||||
#ifdef XP_OS2_VACPP
|
||||
#ifdef index
|
||||
#undef index
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------
|
||||
|
||||
nsresult
|
||||
|
|
|
@ -221,6 +221,13 @@ static FrameCtorDebugFlags gFlags[] = {
|
|||
#include "nsPopupSetFrame.h"
|
||||
#include "nsOutlinerColFrame.h"
|
||||
|
||||
// To kill #define index(a,b) strchr(a,b) macro in Toolkit types.h
|
||||
#ifdef XP_OS2_VACPP
|
||||
#ifdef index
|
||||
#undef index
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------
|
||||
|
||||
nsresult
|
||||
|
|
Загрузка…
Ссылка в новой задаче