Make stock_keymap array conditional on STOCK_KEYMAP.
authorayin <ayin>
Thu, 10 Jan 2008 00:44:43 +0000 (00:44 +0000)
committerayin <ayin>
Thu, 10 Jan 2008 00:44:43 +0000 (00:44 +0000)
src/keyboard.h

index d14efb502d99e69ee5bba28ee5b2ef5e73cfbd40..5ce7fe31630f44c4273d3c4c85f1569db271c87f 100644 (file)
@@ -91,9 +91,11 @@ private:
   uint16_t hash[KEYSYM_HASH_BUDGETS];
   vector<keysym_t *> keymap;
 
+#if STOCK_KEYMAP
   // stock keymaps are all static data
   static keysym_t stock_keymap[];
-  // user keymaps and their .string are dynamicaly allocated and freed
+#endif
+  // user keymaps and their .string are dynamically allocated and freed
   vector<keysym_t *> user_keymap;
   vector<const char *> user_translations;
 };