Bug 942217 - Undefine LoadImage to prevent naming conflict on Windows. r=ehsan

This commit is contained in:
William Chen 2013-12-02 02:26:11 -08:00
Родитель f07cba6cad
Коммит 4db9ead793
2 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -27,6 +27,11 @@
#include "nsMathUtils.h"
#include "Units.h"
#if defined(XP_WIN)
// Undefine LoadImage to prevent naming conflict with Windows.
#undef LoadImage
#endif
class imgICache;
class imgIContainer;
class imgINotificationObserver;

Просмотреть файл

@ -48,6 +48,11 @@
#include "mozAutoDocUpdate.h"
#include "mozilla/dom/Element.h"
#if defined(XP_WIN)
// Undefine LoadImage to prevent naming conflict with Windows.
#undef LoadImage
#endif
using namespace mozilla;
#ifdef DEBUG_chb