diff options
author | Evan Travers <evantravers@gmail.com> | 2018-07-16 11:44:16 -0400 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2018-07-16 08:44:16 -0700 |
commit | 96cb9f4661faa80e795b1e6731b7a8e8a50bd0cb (patch) | |
tree | d0d3e3b38391d5e556c003a9914b137fc16dc4be | |
parent | 8f0ec565f425039e75f5625fc3b34623f85a4558 (diff) | |
download | qmk_firmware-96cb9f4661faa80e795b1e6731b7a8e8a50bd0cb.tar.gz qmk_firmware-96cb9f4661faa80e795b1e6731b7a8e8a50bd0cb.zip |
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
-rw-r--r-- | quantum/template/avr/config.h | 6 | ||||
-rw-r--r-- | quantum/template/base/keymaps/default/config.h | 7 | ||||
-rw-r--r-- | quantum/template/ps2avrgb/config.h | 7 |
3 files changed, 3 insertions, 17 deletions
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 | |||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 | */ | 16 | */ |
17 | 17 | ||
18 | #ifndef CONFIG_H | 18 | #pragma once |
19 | #define CONFIG_H | ||
20 | |||
21 | #include "config_common.h" | ||
22 | 19 | ||
23 | /* USB Device descriptor parameter */ | 20 | /* USB Device descriptor parameter */ |
24 | #define VENDOR_ID 0xFEED | 21 | #define VENDOR_ID 0xFEED |
@@ -215,4 +212,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
215 | #endif | 212 | #endif |
216 | */ | 213 | */ |
217 | 214 | ||
218 | #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 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef CONFIG_USER_H | 17 | #pragma once |
18 | #define CONFIG_USER_H | ||
19 | |||
20 | #include "config_common.h" | ||
21 | 18 | ||
22 | // place overrides here | 19 | // place overrides here |
23 | |||
24 | #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 | |||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 | */ | 16 | */ |
17 | 17 | ||
18 | #ifndef CONFIG_H | 18 | #pragma once |
19 | #define CONFIG_H | ||
20 | |||
21 | #include "config_common.h" | ||
22 | 19 | ||
23 | #define VENDOR_ID 0x20A0 | 20 | #define VENDOR_ID 0x20A0 |
24 | #define PRODUCT_ID 0x422D | 21 | #define PRODUCT_ID 0x422D |
@@ -45,5 +42,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
45 | 42 | ||
46 | /* key combination for command */ | 43 | /* key combination for command */ |
47 | #define IS_COMMAND() (keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT))) | 44 | #define IS_COMMAND() (keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT))) |
48 | |||
49 | #endif | ||