summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorculler <culler>2020-07-31 18:44:30 (GMT)
committerculler <culler>2020-07-31 18:44:30 (GMT)
commitf75f4370274d507d9b3488cece85d3e49df019e4 (patch)
treebe68517cc7f432e7bb087813fd70fab9a8f328c0
parent33c01e381216e12ecd1375775ca7ef7cf332b7d5 (diff)
downloadtk-f75f4370274d507d9b3488cece85d3e49df019e4.zip
tk-f75f4370274d507d9b3488cece85d3e49df019e4.tar.gz
tk-f75f4370274d507d9b3488cece85d3e49df019e4.tar.bz2
Prevent a warning on systems without darkAqua.
-rw-r--r--macosx/tkMacOSXColor.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/macosx/tkMacOSXColor.c b/macosx/tkMacOSXColor.c
index 276fa68..370e8a5 100644
--- a/macosx/tkMacOSXColor.c
+++ b/macosx/tkMacOSXColor.c
@@ -24,8 +24,10 @@ static int rgbColorIndex;
static int controlAccentIndex;
static Bool useFakeAccentColor = NO;
static SystemColorDatum **systemColorIndex;
-static NSAppearance *darkAqua;
static NSAppearance *lightAqua;
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101400
+static NSAppearance *darkAqua;
+#endif
static NSColorSpace* sRGB = NULL;
static CGFloat windowBackground[4] =
{236.0 / 255, 236.0 / 255, 236.0 / 255, 1.0};