]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - keyboards/crkbd/config.h
Keyboard: Improvement of crkbd communication functions (based on helix-keyboard)...
[qmk_firmware.git] / keyboards / crkbd / config.h
index c910d8f24f0ceee711b9e7319639e1fd23209680..64fee754572394eabb7fa37e975d241c6c630f5e 100644 (file)
@@ -16,9 +16,16 @@ You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#ifndef CONFIG_H
-#define CONFIG_H
+#pragma once
 
 #include "config_common.h"
+#include <serial_config.h>
 
-#endif
+#ifdef USE_Link_Time_Optimization
+  // LTO has issues with macros (action_get_macro) and "functions" (fn_actions),
+  //  so just disable them
+  #define NO_ACTION_MACRO
+  #define NO_ACTION_FUNCTION
+
+  #define DISABLE_LEADER
+#endif // USE_Link_Time_Optimization