From: Evan Travers Date: Mon, 16 Jul 2018 15:44:16 +0000 (-0400) Subject: Update template config.h with `#pragma once` (#3415) X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=96cb9f4661faa80e795b1e6731b7a8e8a50bd0cb;p=qmk_firmware.git Update template config.h with `#pragma once` (#3415) * Update template config.h with `#pragma once` Making sure this is consistent with #3404 * Move to `#pragma once` for the other templates --- diff --git a/quantum/template/avr/config.h b/quantum/template/avr/config.h index ac3174502..f7298cebb 100644 --- a/quantum/template/avr/config.h +++ b/quantum/template/avr/config.h @@ -15,10 +15,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#ifndef CONFIG_H -#define CONFIG_H - -#include "config_common.h" +#pragma once /* USB Device descriptor parameter */ #define VENDOR_ID 0xFEED @@ -215,4 +212,3 @@ along with this program. If not, see . #endif */ -#endif diff --git a/quantum/template/base/keymaps/default/config.h b/quantum/template/base/keymaps/default/config.h index 0f7563505..4496c5910 100644 --- a/quantum/template/base/keymaps/default/config.h +++ b/quantum/template/base/keymaps/default/config.h @@ -14,11 +14,6 @@ * along with this program. If not, see . */ -#ifndef CONFIG_USER_H -#define CONFIG_USER_H - -#include "config_common.h" +#pragma once // place overrides here - -#endif diff --git a/quantum/template/ps2avrgb/config.h b/quantum/template/ps2avrgb/config.h index b95746595..d528314cb 100644 --- a/quantum/template/ps2avrgb/config.h +++ b/quantum/template/ps2avrgb/config.h @@ -15,10 +15,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#ifndef CONFIG_H -#define CONFIG_H - -#include "config_common.h" +#pragma once #define VENDOR_ID 0x20A0 #define PRODUCT_ID 0x422D @@ -45,5 +42,3 @@ along with this program. If not, see . /* key combination for command */ #define IS_COMMAND() (keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT))) - -#endif