diff options
author | David Robillard <d@drobilla.net> | 2022-05-28 17:40:43 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-05-28 17:40:43 -0400 |
commit | f41335eb6559bd3da64470ffe32a0e68899c11bd (patch) | |
tree | 58558163c665474f7b045670d6a8fd7eb8c74a2e | |
parent | 0d7e9777ccf8521bd6f828104ed4f64db470f406 (diff) | |
download | pugl-f41335eb6559bd3da64470ffe32a0e68899c11bd.tar.gz pugl-f41335eb6559bd3da64470ffe32a0e68899c11bd.tar.bz2 pugl-f41335eb6559bd3da64470ffe32a0e68899c11bd.zip |
Omit cursor_names if XCursor is not available
This avoids a Wunused-const-variable warning with GCC.
-rw-r--r-- | src/x11.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -67,6 +67,7 @@ enum WmClientStateMessageAction { #define NUM_CURSORS ((unsigned)PUGL_CURSOR_UP_DOWN + 1u) +#ifdef HAVE_XCURSOR static const char* const cursor_names[NUM_CURSORS] = { "default", // ARROW "text", // CARET @@ -76,6 +77,7 @@ static const char* const cursor_names[NUM_CURSORS] = { "sb_h_double_arrow", // LEFT_RIGHT "sb_v_double_arrow" // UP_DOWN }; +#endif static bool initXSync(PuglWorldInternals* const impl) |