diff --git a/gfx/public/nsColor.h b/gfx/public/nsColor.h index 1a65a3dd9a9f..0b190cc0dc7e 100644 --- a/gfx/public/nsColor.h +++ b/gfx/public/nsColor.h @@ -122,7 +122,12 @@ extern "C" NS_GFX_(void) NS_RGB2HSV(nscolor aColor,PRUint16 &aHue,PRUint16 &aSat extern "C" NS_GFX_(void) NS_HSV2RGB(nscolor &aColor,PRUint16 aHue,PRUint16 aSat,PRUint16 aValue); // Gamma correction -PR_EXPORT_DATA(PRUint8) nsGammaRamp[256], nsInverseGammaRamp[256]; +#ifndef NS_WIN32 +PR_EXPORT_DATA(PRUint8) +#else +extern PRUint8 +#endif +nsGammaRamp[256], nsInverseGammaRamp[256]; extern "C" NS_GFX_(double) NS_DisplayGammaValue(void); extern "C" NS_GFX_(void) NS_InitializeGamma(void); diff --git a/gfx/src/nsColor.cpp b/gfx/src/nsColor.cpp index c3e5801ec185..3709f54799c9 100644 --- a/gfx/src/nsColor.cpp +++ b/gfx/src/nsColor.cpp @@ -457,7 +457,12 @@ extern "C" NS_GFX_(nscolor) NS_DarkenColor(nscolor inColor) /* Gamma correction stuff */ -PR_IMPLEMENT_DATA(PRUint8) nsGammaRamp[256], nsInverseGammaRamp[256]; +#ifndef NS_WIN32 +PR_IMPLEMENT_DATA(PRUint8) +#else +PRUint8 +#endif +nsGammaRamp[256], nsInverseGammaRamp[256]; static double gammaValue = 2.2; extern "C" NS_GFX_(double) NS_DisplayGammaValue(void)