From 154fe636ee893b6835c2b8f9a8f2bfc0432c7067 Mon Sep 17 00:00:00 2001 From: Ian Elliott Date: Wed, 25 Feb 2015 17:34:46 -0700 Subject: Win: layers (draw_state.c): Fix compilation error on Windows. Visual Studio doesn't like: static const uint32_t NUM_COLORS = 7; char* edgeColors[NUM_COLORS]; Instead, we need to do: char* edgeColors[NUM_COLORS]; --- layers/draw_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/draw_state.c b/layers/draw_state.c index 0b7bfc78..39745d15 100644 --- a/layers/draw_state.c +++ b/layers/draw_state.c @@ -1311,7 +1311,7 @@ static void dsDumpDot(const XGL_CMD_BUFFER cb, FILE* pOutFile) fprintf(pOutFile, "slot%u", i, i); } } - static const uint32_t NUM_COLORS = 7; +#define NUM_COLORS 7 char* edgeColors[NUM_COLORS]; edgeColors[0] = "0000ff"; edgeColors[1] = "ff00ff"; -- cgit v1.2.3